diff options
author | Christian Pointner <equinox@mur.at> | 2015-02-17 16:19:46 +0100 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2015-02-17 16:19:46 +0100 |
commit | f4dfdae2650d9774de7267595732087330e6e3c5 (patch) | |
tree | bd826a4be63f6fb415a58233dba2b702e98f0b1d /software/hhd70dongle/hhd70dongle.c | |
parent | hhd70: reading state works now (diff) |
hhd70: added commands SXOFF and SCAL
Diffstat (limited to 'software/hhd70dongle/hhd70dongle.c')
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 35d2d38..0827a4a 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -65,6 +65,12 @@ static void powerdown_hhd70(void) cc1101_powerdown(); } +static void osc_off_hhd70(void) +{ + printf("disabling CC1101 oscillator.\r\n"); + cc1101_osc_off(); +} + static uint32_t print_actual_freq(void) { uint32_t f = cc1101_get_freq_hz(); @@ -117,6 +123,8 @@ static void handle_cmd(uint8_t cmd) case 'P': powerdown_hhd70(); break; case 'I': cc1101_idle(); print_status(); break; + case 'O': osc_off_hhd70(); break; + case 'C': cc1101_calibrate(); print_status(); break; case 'f': print_actual_freq(); break; case 's': print_status(); break; |