48 #define POWER_PIN IOID_30 49 #define SELECT_PIN IOID_1 52 shutdown_handler(uint8_t mode)
54 ti_lib_gpio_clear_dio(POWER_PIN);
61 LPM_MODULE(rf_switch_module, NULL, shutdown_handler, NULL, LPM_DOMAIN_NONE);
66 ti_lib_ioc_pin_type_gpio_output(POWER_PIN);
67 ti_lib_gpio_clear_dio(POWER_PIN);
68 ti_lib_ioc_pin_type_gpio_output(SELECT_PIN);
69 ti_lib_gpio_clear_dio(SELECT_PIN);
77 ti_lib_gpio_set_dio(POWER_PIN);
81 rf_switch_power_down()
83 ti_lib_gpio_clear_dio(POWER_PIN);
87 rf_switch_select_path(uint8_t path)
89 ti_lib_gpio_write_dio(SELECT_PIN, path);
Header file with macros which rename TI CC26xxware functions.
Header file with definitions related to RF switch support.
#define LPM_MODULE(n, m, s, w, l)
Declare a variable to be used in order to get notifications from LPM.
void lpm_register_module(lpm_registered_module_t *module)
Register a module for LPM notifications.