summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2015-03-03 22:42:53 +0100
committerChristian Pointner <equinox@mur.at>2015-03-03 22:42:53 +0100
commit5a98f25f75c8c21faefee232ffae811d854d9acf (patch)
tree111133eb039c252fcd79216fb5dbe13648f31334
parenthhd70: added simple task handling (diff)
hhd70: pa table dump
-rw-r--r--software/hhd70dongle/hhd70dongle.c12
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;
}
}