diff options
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 44a2c30..3f14d8a 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -182,7 +182,17 @@ static void dump_register_normalized(void) printf("RCCTRL1: 0x%02X\r\n", cc1101_get_rcctrl1_status()); } +uint8_t patable_data[CC1101_PATABLE_SIZE]; +static void print_pa_table(void) +{ + printf("PA Table: "); + uint8_t i; + uint8_t l = cc1101_read_patable(patable_data, CC1101_PATABLE_SIZE); + for(i=0; i<l; ++i) + printf("%s%02X", i ? " " : "", patable_data[i]); + printf("\r\n"); +} static void handle_cmd(uint8_t cmd) { @@ -216,6 +226,8 @@ static void handle_cmd(uint8_t cmd) case 'D': cc1101_dump_register(); break; case 'd': dump_register_normalized(); break; + case 'p': print_pa_table(); break; + default: printf("unknown command\r\n"); return; } } |