Add RF_PATH_DIRECTION_OFF enum and code.
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user