From 6c35171d857173fb93820be7e9518ffbbc484b79 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 17 Feb 2015 16:49:20 +0100 Subject: hhd70: command fast tx on --- software/avr.lib/cc1101.c | 4 ++-- software/avr.lib/cc1101.h | 2 +- software/hhd70dongle/hhd70dongle.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/software/avr.lib/cc1101.c b/software/avr.lib/cc1101.c index fc8b16a..3436782 100644 --- a/software/avr.lib/cc1101.c +++ b/software/avr.lib/cc1101.c @@ -133,9 +133,9 @@ void cc1101_calibrate(void) cc1101_spi_strobe_command(CC1101_CMD_SCAL); } -void cc1101_rx(void) +void cc1101_fasttxon(void) { - cc1101_spi_strobe_command(CC1101_CMD_SRX); + cc1101_spi_strobe_command(CC1101_CMD_SFSTXON); } char* cc1101_state_to_string(cc1101_state_t state) diff --git a/software/avr.lib/cc1101.h b/software/avr.lib/cc1101.h index 8884b6a..ce97d9d 100644 --- a/software/avr.lib/cc1101.h +++ b/software/avr.lib/cc1101.h @@ -47,7 +47,7 @@ void cc1101_powerdown(void); void cc1101_idle(void); void cc1101_osc_off(void); void cc1101_calibrate(void); -void cc1101_rx(void); +void cc1101_fasttxon(void); cc1101_state_t cc1101_get_state(void); void cc1101_set_freq_hz(uint32_t hz); diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 0827a4a..ca2fa45 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -125,6 +125,7 @@ static void handle_cmd(uint8_t cmd) case 'I': cc1101_idle(); print_status(); break; case 'O': osc_off_hhd70(); break; case 'C': cc1101_calibrate(); print_status(); break; + case 'X': cc1101_fasttxon(); print_status(); break; case 'f': print_actual_freq(); break; case 's': print_status(); break; -- cgit v1.2.3