summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2015-02-17 15:49:20 (GMT)
committerChristian Pointner <equinox@mur.at>2015-02-17 15:49:20 (GMT)
commit6c35171d857173fb93820be7e9518ffbbc484b79 (patch)
tree0683a542b258406e20badb3e869b9866b565ec7f
parentf4dfdae2650d9774de7267595732087330e6e3c5 (diff)
hhd70: command fast tx on
-rw-r--r--software/avr.lib/cc1101.c4
-rw-r--r--software/avr.lib/cc1101.h2
-rw-r--r--software/hhd70dongle/hhd70dongle.c1
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;