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();
|
rffc5071_rx();
|
||||||
break;
|
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);
|
rffc5071_set_gpo(switchctrl);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
void rf_path_init(void);
|
void rf_path_init(void);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
RF_PATH_DIRECTION_OFF,
|
||||||
RF_PATH_DIRECTION_RX,
|
RF_PATH_DIRECTION_RX,
|
||||||
RF_PATH_DIRECTION_TX,
|
RF_PATH_DIRECTION_TX,
|
||||||
} rf_path_direction_t;
|
} rf_path_direction_t;
|
||||||
|
Reference in New Issue
Block a user