This is a Wireless General Purpose IO Application a.k.a. a light switch application.
The application can run in two modes:
Definition in file wgpio.c.
Go to the source code of this file.
Defines | |
#define | AWAKE_TIME MSEC(1000) |
Functions | |
int | main (void) |
static void | state_app_config (app_ctx_t *ctx) |
static void | state_app_running (app_ctx_t *events) |
static void | state_app_status_pending (app_ctx_t *ctx) |
static void | state_tx_status_in_progress (app_ctx_t *ctx) |
static void | state_tx_switch_in_progress (app_ctx_t *ctx) |
static void | status_led_config (uint8_t val, uint8_t blnk) |
static void | status_led_handle () |
void | TRX_IRQ_vect () |
static void | wgpio_actor_update (uint8_t state) |
static void | wgpio_idle (uint8_t idlemode) |
static void | wgpio_init (void) |
static bool | wgpio_send_status (event_code_t cmd, uint8_t state) |
Send the current key status. | |
Variables | |
actor_ctx_t | ActorCtx |
volatile uint8_t | KeyEvent = 0 |
uint8_t | Led1Blnk = 0 |
volatile uint16_t | TmoCounter = 0 |
volatile uint8_t | TmoEvent = 0 |
volatile event_t | TrxEvent |
volatile app_state_t | TrxState |
void TRX_IRQ_vect | ( | ) |
static void wgpio_init | ( | void | ) | [static] |
static bool wgpio_send_status | ( | event_code_t | cmd, | |
uint8_t | state | |||
) | [static] |