![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdDumpRegisters.cpp
- Committer:
- pferland
- Date:
- 2018-03-02
- Revision:
- 18:f5d28d621bb0
- Parent:
- 14:f9a77400b622
File content as of revision 18:f5d28d621bb0:
#include "CmdDumpRegisters.h" CmdDumpRegisters::CmdDumpRegisters() : Command("Dump Regs", "AT+DREGS", "Dump the SX1272 register values", "NONE") { } uint32_t CmdDumpRegisters::action(std::vector<std::string> args) { std::map<uint8_t, uint8_t> regs = CommandTerminal::Dot()->dumpRegisters(); CommandTerminal::Serial()->writef("\r\nSX1272 Register Dump:\r\n"); CommandTerminal::Serial()->writef("Addr\tData\r\n"); for (std::map<uint8_t, uint8_t>::iterator it = regs.begin(); it != regs.end(); it++) CommandTerminal::Serial()->writef("%2.2X -> %2.2X\r\n", it->first, it->second); return 0; }