|
Appiko
|
The PIR sense application's support file that handles ble operations. More...
Data Structures | |
| struct | __attribute__ |
| Strcture for Operation time. More... | |
Functions | |
| void | sensepi_ble_init (void(*ble_sd_evt)(ble_evt_t *evt), void(*config_update)(sensepi_config_t *cfg)) |
| Initialize the handlers to pass the BLE SD events and the configuration received from the mobile app. More... | |
| void | sensepi_ble_update_sysinfo (sensepi_sysinfo *sysinfo) |
| Updates the characteristic that stores the sysinfo. More... | |
| void | sensepi_ble_update_config (sensepi_config_t *config) |
| Updates the characteristic that stores the SensePi config. More... | |
| void | sensepi_ble_disconn (void) |
| Disconnect the current active connection, if already connected. | |
| void | sensepi_ble_stack_init (void) |
| Function for initializing the BLE stack by enabling the SoftDevice and the BLE event interrupt. | |
| void | sensepi_ble_service_init (void) |
| Create the Service and its characteristics for the SensePi device. There is a read-only characteristic that provides all the info from the device and a read-write characteristic that is used to set the operational configuration of the device. | |
| void | sensepi_ble_gap_params_init (void) |
| Generic Access Profile initialization. The device name, and the preferred connection parameters are setup. | |
| void | sensepi_ble_adv_init (sensepi_ble_adv_data_t *sensepi_ble_adv_data) |
| Function to initializing the advertising. More... | |
| void | sensepi_ble_adv_start (void) |
| Function to start advertising. | |
| void | sensebe_ble_init (void(*ble_sd_evt)(ble_evt_t *evt), void(*config_update)(sensebe_config_t *cfg)) |
| Initialize the handlers to pass the BLE SD events and the configuration received from the mobile app. More... | |
| void | sensebe_ble_update_sysinfo (sensebe_sysinfo *sysinfo) |
| Updates the characteristic that stores the sysinfo. More... | |
| void | sensebe_ble_update_config (sensebe_config_t *config) |
| Updates the characteristic that stores the SensePi config. More... | |
| void | sensebe_ble_disconn (void) |
| Disconnect the current active connection, if already connected. | |
| void | sensebe_ble_stack_init (void) |
| Function for initializing the BLE stack by enabling the SoftDevice and the BLE event interrupt. | |
| void | sensebe_ble_service_init (void) |
| Create the Service and its characteristics for the SensePi device. There is a read-only characteristic that provides all the info from the device and a read-write characteristic that is used to set the operational configuration of the device. | |
| void | sensebe_ble_gap_params_init (void) |
| Generic Access Profile initialization. The device name, and the preferred connection parameters are setup. | |
| void | sensebe_ble_adv_init (sensebe_ble_adv_data_t *sensebe_ble_adv_data) |
| Function to initializing the advertising. More... | |
| void | sensebe_ble_adv_start (void) |
| Function to start advertising. | |
The active IR sense application's support file that handles ble operations.
| enum device_speed_t |
| Enumerator | |
|---|---|
| FAST | Lightning mode. |
| NORM | Fast mode. |
| SLOWMO | Normal mode. |
| FAST | Lightning mode. |
| NORM | Fast mode. |
| SLOWMO | Normal mode. |
Definition at line 58 of file sensebe_ble.h.
| enum device_speed_t |
| Enumerator | |
|---|---|
| FAST | Lightning mode. |
| NORM | Fast mode. |
| SLOWMO | Normal mode. |
| FAST | Lightning mode. |
| NORM | Fast mode. |
| SLOWMO | Normal mode. |
Definition at line 58 of file sensebe_ble.h.
| enum trigger_conf_t |
Definition at line 47 of file sensebe_ble.h.
| enum trigger_conf_t |
Definition at line 47 of file sensepi_ble.h.
| enum trigger_conf_t |
Definition at line 48 of file sensebe_ble.h.
| enum trigger_conf_t |
Definition at line 48 of file sensebe_ble.h.
| void sensebe_ble_adv_init | ( | sensebe_ble_adv_data_t * | sensebe_ble_adv_data | ) |
| sensebe_ble_adv_data | Advaertise data and scan response data along with their respective lengths. |
Definition at line 369 of file sensebe_ble.c.
References APP_ERROR_CHECK.
| void sensebe_ble_init | ( | void(*)(ble_evt_t *evt) | ble_sd_evt, |
| void(*)(sensebe_config_t *cfg) | config_update | ||
| ) |
| ble_sd_evt | Handler to send the BLE events to the application |
| config_update | Handler to send SensePi config to the application |
Definition at line 169 of file sensebe_ble.c.
| void sensebe_ble_update_config | ( | sensebe_config_t * | config | ) |
| config | A pointer to the new Sense Pi configuration |
Definition at line 201 of file sensebe_ble.c.
References APP_ERROR_CHECK.
| void sensebe_ble_update_sysinfo | ( | sensebe_sysinfo * | sysinfo | ) |
| sysinfo | A pointer to the Sense Pi info for the updation |
Definition at line 187 of file sensebe_ble.c.
References APP_ERROR_CHECK.
| void sensepi_ble_adv_init | ( | sensepi_ble_adv_data_t * | sensepi_ble_adv_data | ) |
| sensepi_ble_adv_data | Advaertise data and scan response data along with their respective lengths. |
Definition at line 361 of file sensepi_ble.c.
References APP_ERROR_CHECK.
| void sensepi_ble_init | ( | void(*)(ble_evt_t *evt) | ble_sd_evt, |
| void(*)(sensepi_config_t *cfg) | config_update | ||
| ) |
| ble_sd_evt | Handler to send the BLE events to the application |
| config_update | Handler to send SensePi config to the application |
Definition at line 161 of file sensepi_ble.c.
| void sensepi_ble_update_config | ( | sensepi_config_t * | config | ) |
| config | A pointer to the new Sense Pi configuration |
Definition at line 193 of file sensepi_ble.c.
References APP_ERROR_CHECK.
| void sensepi_ble_update_sysinfo | ( | sensepi_sysinfo * | sysinfo | ) |
| sysinfo | A pointer to the Sense Pi info for the updation |
Definition at line 179 of file sensepi_ble.c.
References APP_ERROR_CHECK.
1.8.15