Add RF_PATH_DIRECTION_OFF enum and code.

This commit is contained in:
Jared Boone
2013-09-08 15:16:51 -07:00
parent 217630d82c
commit a897c4f016
2 changed files with 8 additions and 0 deletions

View File

@ -87,6 +87,13 @@ void rf_path_set_direction(const rf_path_direction_t direction) {
}
rffc5071_rx();
break;
case RF_PATH_DIRECTION_OFF:
default:
/* Set RF path to receive direction when "off" */
switchctrl &= ~SWITCHCTRL_TX;
rffc5071_disable();
break;
}
rffc5071_set_gpo(switchctrl);

View File

@ -28,6 +28,7 @@
void rf_path_init(void);
typedef enum {
RF_PATH_DIRECTION_OFF,
RF_PATH_DIRECTION_RX,
RF_PATH_DIRECTION_TX,
} rf_path_direction_t;