Appiko
|
The active IR sense application's main file that makes it operate. More...
Modules | |
The support code for the PIR based Sense units. | |
The PIR sense application's support file that handles ble operations. | |
The support code to control IR transmission and reception. | |
The active IR sense application's support file that handles motion detection\ and timer based operations. | |
The support code to store configurations. | |
The support code to store configurations received from other BLE device. | |
The header file to handle resource allocation. | |
The header file which contains system definitions for resources allocation. | |
Macros | |
#define | APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define | APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define | APP_ADV_DATA |
#define | APP_SCAN_RSP_DATA |
#define | WDT_PERIOD_MS 301000 |
#define | ENABLE_WDT 1 |
#define | SENSE_FAST_TICK_INTERVAL_MS 60 |
#define | SENSE_SLOW_TICK_INTERVAL_MS 300000 |
#define | ADV_FAST_TICK_INTERVAL_MS 60 |
#define | ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_FAST_TICK_INTERVAL_MS 60 |
#define | CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_TIMEOUT_MS (10*60*1000) |
#define | APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define | APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define | APP_ADV_DATA |
#define | APP_SCAN_RSP_DATA |
#define | WDT_PERIOD_MS 301000 |
#define | ENABLE_WDT 1 |
#define | SENSE_FAST_TICK_INTERVAL_MS 60 |
#define | SENSE_SLOW_TICK_INTERVAL_MS 300000 |
#define | ADV_FAST_TICK_INTERVAL_MS 60 |
#define | ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_FAST_TICK_INTERVAL_MS 60 |
#define | CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_TIMEOUT_MS (10*60*1000) |
#define | APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define | APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define | APP_ADV_DATA |
#define | APP_SCAN_RSP_DATA |
#define | WDT_PERIOD_MS 30100 |
#define | ENABLE_WDT 1 |
#define | SENSE_FAST_TICK_INTERVAL_MS 60 |
#define | SENSE_SLOW_TICK_INTERVAL_MS 30000 |
#define | ADV_FAST_TICK_INTERVAL_MS 60 |
#define | ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_FAST_TICK_INTERVAL_MS 60 |
#define | CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define | CONN_TIMEOUT_MS (10*60*1000) |
Enumerations | |
enum | sense_states { SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED } |
enum | sense_states { SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED } |
enum | sense_states { SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED, SENSING, ADVERTISING, CONNECTED } |
Functions | |
void | wdt_prior_reset_callback (void) |
void | next_interval_handler (uint32_t interval) |
The next interval handler is used for providing a periodic tick to be used by the various modules of the application. More... | |
void | state_change_handler (uint32_t new_state) |
The handler that is called whenever the application transitions to a new state. More... | |
void | button_handler (button_ui_steps step, button_ui_action act) |
Handler for all button related events. More... | |
void | leds_init (void) |
Initialize and blink the LEDs momentarily. To be used at the start of the program. | |
void | boot_pwr_config (void) |
Prints the reason for the last reset, enables the internal DC-DC converter if the board supports it and puts the nRF SoC to the low power mode. | |
void | load_last_config () |
function to load previous sensebe configuration present in flash memory | |
void | slumber (void) |
int | main (void) |
Function for application main entry. | |
Variables | |
sense_states | current_state |
sense_states | current_state |
sense_states | current_state |
#define ADV_FAST_TICK_INTERVAL_MS 60 |
#define ADV_FAST_TICK_INTERVAL_MS 60 |
#define ADV_FAST_TICK_INTERVAL_MS 60 |
#define ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define ADV_SLOW_TICK_INTERVAL_MS 1100 |
#define APP_ADV_DATA |
The data to be sent in the advertising payload. It is of the format of a sequence of {Len, type, data}
#define APP_ADV_DATA |
The data to be sent in the advertising payload. It is of the format of a sequence of {Len, type, data}
#define APP_ADV_DATA |
The data to be sent in the advertising payload. It is of the format of a sequence of {Len, type, data}
#define APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define APP_DEVICE_NAME_CHAR 'S','e','n','s','e','B','e' |
#define APP_SCAN_RSP_DATA |
The data to be sent in the scan response payload. It is of the format of a sequence of {Len, type, data}
#define APP_SCAN_RSP_DATA |
The data to be sent in the scan response payload. It is of the format of a sequence of {Len, type, data}
#define APP_SCAN_RSP_DATA |
The data to be sent in the scan response payload. It is of the format of a sequence of {Len, type, data}
#define APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define APP_UUID_COMPLETE 0x0a, 0xde, 0xfb, 0x07, 0x74, 0x83, 0x66, 0xb0, 0x0d, 0x48, 0xf5, 0x07, 0x60, 0xdc, 0x73, 0x3c |
#define CONN_FAST_TICK_INTERVAL_MS 60 |
#define CONN_FAST_TICK_INTERVAL_MS 60 |
#define CONN_FAST_TICK_INTERVAL_MS 60 |
#define CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define CONN_SLOW_TICK_INTERVAL_MS 1100 |
#define CONN_TIMEOUT_MS (10*60*1000) |
#define CONN_TIMEOUT_MS (10*60*1000) |
#define CONN_TIMEOUT_MS (10*60*1000) |
#define ENABLE_WDT 1 |
#define ENABLE_WDT 1 |
#define ENABLE_WDT 1 |
#define SENSE_FAST_TICK_INTERVAL_MS 60 |
#define SENSE_FAST_TICK_INTERVAL_MS 60 |
#define SENSE_FAST_TICK_INTERVAL_MS 60 |
#define SENSE_SLOW_TICK_INTERVAL_MS 300000 |
#define SENSE_SLOW_TICK_INTERVAL_MS 300000 |
#define SENSE_SLOW_TICK_INTERVAL_MS 30000 |
#define WDT_PERIOD_MS 301000 |
#define WDT_PERIOD_MS 30100 |
#define WDT_PERIOD_MS 301000 |
enum sense_states |
Defines the states possible in the SensePi device
enum sense_states |
Defines the states possible in the SensePi device
enum sense_states |
Defines the states possible in the SensePi device
void button_handler | ( | button_ui_steps | step, |
button_ui_action | act | ||
) |
step | The step reached by the button press |
act | The action of the button press i.e. if a step is crossed or the button is released |
Definition at line 372 of file main.c.
References BUTTON_UI_ACT_CROSS, button_ui_config_wake(), BUTTON_UI_STEP_QUICK, BUTTON_UI_STEP_WAKE, current_state, DEVICE_TICK_FAST, device_tick_init(), irq_msg_push(), MS_TIMER_TICKS_MS, SENSE_FAST_TICK_INTERVAL_MS, SENSE_SLOW_TICK_INTERVAL_MS, and SENSING.
void next_interval_handler | ( | uint32_t | interval | ) |
interval | The interval from the last call of this function |
Definition at line 247 of file main.c.
References ADVERTISING, button_ui_add_tick(), CONNECTED, current_state, sensebe_tx_rx_add_ticks(), and SENSING.
void slumber | ( | void | ) |
void state_change_handler | ( | uint32_t | new_state | ) |
new_state | The state to which the application has transitioned to. |
Get config from sensebe_cam_trigger and send to the BLE module
Get config from sensebe_cam_trigger and send to the BLE module
Get config from sensebe_cam_trigger and send to the BLE module
Definition at line 279 of file main.c.
References current_state, DEVICE_TICK_SAME, led_ui_type_stop_all(), MS_TIMER_TICKS_MS, SENSE_FAST_TICK_INTERVAL_MS, SENSE_SLOW_TICK_INTERVAL_MS, and SENSING.
void wdt_prior_reset_callback | ( | void | ) |
sense_states current_state |
sense_states current_state |
sense_states current_state |