// ************************************************************************************************* // @fn sx_ppt // @brief Start SimpliciTI. Button DOWN connects/disconnects to access point. // @param u8 line LINE2 // @return none // ************************************************************************************************* void sx_ppt(u8 line) { // Exit if battery voltage is too low for radio operation if (sys.flag.low_battery) return; // Exit if BlueRobin stack is active if (is_bluerobin()) return; // Start SimpliciTI in tx only mode start_simpliciti_tx_only(SIMPLICITI_BUTTONS); }
// ************************************************************************************************* // @fn sx_rf // @brief Start SimpliciTI. Button DOWN connects/disconnects to access point. // @param u8 line LINE2 // @return none // ************************************************************************************************* void sx_rf(u8 line) { // Exit if battery voltage is too low for radio operation if (sys.flag.low_battery) return; #ifdef USE_BLUEROBIN // Exit if BlueRobin stack is active if (is_bluerobin()) return; #endif //USE_BLUEROBIN // Start SimpliciTI in tx only mode start_simpliciti_tx_only(SIMPLICITI_ACCELERATION); }
// ************************************************************************************************* // @fn sx_ppt // @brief Start SimpliciTI. Button DOWN connects/disconnects to access point. // @param u8 line LINE2 // @return none // ************************************************************************************************* void sx_ppt(u8 line) { // Exit if battery voltage is too low for radio operation if (sys.flag.low_battery) return; // Turn off the backlight P2OUT &= ~BUTTON_BACKLIGHT_PIN; P2DIR &= ~BUTTON_BACKLIGHT_PIN; BUTTONS_IE &= ~BUTTON_BACKLIGHT_PIN; // Start SimpliciTI in tx only mode start_simpliciti_tx_only(SIMPLICITI_BUTTONS); BUTTONS_IE |= BUTTON_BACKLIGHT_PIN; }
// ************************************************************************************************* // @fn sx_rf // @brief Start SimpliciTI. Button DOWN connects/disconnects to access point. // @param u8 line LINE2 // @return none // ************************************************************************************************* void sx_rf(u8 line) { // Exit if battery voltage is too low for radio operation if (sys.flag.low_battery) return; // Exit if BlueRobin stack is active if (is_bluerobin()) return; // Turn off the backlight P2OUT &= ~BUTTON_BACKLIGHT_PIN; P2DIR &= ~BUTTON_BACKLIGHT_PIN; BUTTONS_IE &= ~BUTTON_BACKLIGHT_PIN; // Start SimpliciTI in tx only mode start_simpliciti_tx_only(SIMPLICITI_ACCELERATION); BUTTONS_IE |= BUTTON_BACKLIGHT_PIN; }