Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CmdDumpRegisters.cpp
00001 #include "CmdDumpRegisters.h" 00002 00003 CmdDumpRegisters::CmdDumpRegisters() : Command("Dump Regs", "AT+DREGS", "Dump the SX1272 register values", "NONE") 00004 { 00005 } 00006 00007 uint32_t CmdDumpRegisters::action(std::vector<std::string> args) 00008 { 00009 std::map<uint8_t, uint8_t> regs = CommandTerminal::Dot()->dumpRegisters(); 00010 00011 CommandTerminal::Serial()->writef("\r\nSX1272 Register Dump:\r\n"); 00012 CommandTerminal::Serial()->writef("Addr\tData\r\n"); 00013 for (std::map<uint8_t, uint8_t>::iterator it = regs.begin(); it != regs.end(); it++) 00014 CommandTerminal::Serial()->writef("%2.2X -> %2.2X\r\n", it->first, it->second); 00015 00016 return 0; 00017 } 00018
Generated on Tue Jul 12 2022 20:40:03 by
