From f4dfdae2650d9774de7267595732087330e6e3c5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 17 Feb 2015 16:19:46 +0100 Subject: hhd70: added commands SXOFF and SCAL --- software/hhd70dongle/hhd70dongle.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'software/hhd70dongle') 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; -- cgit v1.2.3