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.
Fork of mDot_AT_firmware by
CmdDumpRegisters.cpp
00001 #include "CmdDumpRegisters.h" 00002 00003 CmdDumpRegisters::CmdDumpRegisters() : 00004 #if MTS_CMD_TERM_VERBOSE 00005 Command("Dump Regs", "AT+DREGS", "Dump the SX1272 register values", "NONE") 00006 #else 00007 Command("AT+DREGS") 00008 #endif 00009 { 00010 } 00011 00012 uint32_t CmdDumpRegisters::action(const std::vector<std::string>& args) 00013 { 00014 std::map<uint8_t, uint8_t> regs = CommandTerminal::Dot()->dumpRegisters(); 00015 00016 CommandTerminal::Serial()->writef("\r\nSX1272 Register Dump:\r\n"); 00017 CommandTerminal::Serial()->writef("Addr\tData\r\n"); 00018 for (std::map<uint8_t, uint8_t>::iterator it = regs.begin(); it != regs.end(); it++) 00019 CommandTerminal::Serial()->writef("%2.2X -> %2.2X\r\n", it->first, it->second); 00020 00021 return 0; 00022 } 00023
Generated on Wed Jan 15 2025 16:10:47 by
1.7.2


