Appiko
Data Structures | Enumerations | Functions

The PIR sense application's support file that handles ble operations. More...

Data Structures

struct  __attribute__
 Strcture for Operation time. More...
 

Enumerations

enum  trigger_conf_t { ,
  PIR_ONLY, PIR_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER ,
  MOTION_ONLY, MOTION_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER
}
 Enum of all posiible modes of operation. More...
 
enum  trigger_conf_t { ,
  PIR_ONLY, PIR_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER ,
  MOTION_ONLY, MOTION_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER
}
 Enum of all posiible modes of operation. More...
 
enum  device_speed_t { ,
  FAST, NORM, SLOWMO , FAST,
  NORM, SLOWMO
}
 Enum to select operation speed for Device. More...
 
enum  cam_trig_ls_t
 Enum to store the list of camera triggers possible.
 
enum  trigger_conf_t { ,
  PIR_ONLY, PIR_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER ,
  MOTION_ONLY, MOTION_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER
}
 Enum of all posiible modes of operation. More...
 
enum  device_speed_t { ,
  FAST, NORM, SLOWMO , FAST,
  NORM, SLOWMO
}
 Enum to select operation speed for Device. More...
 
enum  cam_trig_ls_t
 Enum to store the list of camera triggers possible.
 
enum  trigger_conf_t { ,
  PIR_ONLY, PIR_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER ,
  MOTION_ONLY, MOTION_AND_TIMER , MOTION_ONLY, MOTION_AND_TIMER
}
 Enum of all posiible modes of operation. 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.
 

Detailed Description

The active IR sense application's support file that handles ble operations.

Enumeration Type Documentation

◆ device_speed_t [1/2]

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.

◆ device_speed_t [2/2]

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.

◆ trigger_conf_t [1/4]

Enumerator
PIR_ONLY 

Trigger only on timer.

PIR_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

Definition at line 47 of file sensebe_ble.h.

◆ trigger_conf_t [2/4]

Enumerator
PIR_ONLY 

Trigger only on timer.

PIR_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

Definition at line 47 of file sensepi_ble.h.

◆ trigger_conf_t [3/4]

Enumerator
PIR_ONLY 

Trigger only on timer.

PIR_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

Definition at line 48 of file sensebe_ble.h.

◆ trigger_conf_t [4/4]

Enumerator
PIR_ONLY 

Trigger only on timer.

PIR_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

MOTION_ONLY 

Trigger only on timer.

MOTION_AND_TIMER 

Trigger only on motion detection.

Definition at line 48 of file sensebe_ble.h.

Function Documentation

◆ sensebe_ble_adv_init()

void sensebe_ble_adv_init ( sensebe_ble_adv_data_t *  sensebe_ble_adv_data)
Parameters
sensebe_ble_adv_dataAdvaertise data and scan response data along with their respective lengths.

Definition at line 369 of file sensebe_ble.c.

References APP_ERROR_CHECK.

◆ sensebe_ble_init()

void sensebe_ble_init ( void(*)(ble_evt_t *evt)  ble_sd_evt,
void(*)(sensebe_config_t *cfg)  config_update 
)
Parameters
ble_sd_evtHandler to send the BLE events to the application
config_updateHandler to send SensePi config to the application

Definition at line 169 of file sensebe_ble.c.

◆ sensebe_ble_update_config()

void sensebe_ble_update_config ( sensebe_config_t *  config)
Parameters
configA pointer to the new Sense Pi configuration

Definition at line 201 of file sensebe_ble.c.

References APP_ERROR_CHECK.

◆ sensebe_ble_update_sysinfo()

void sensebe_ble_update_sysinfo ( sensebe_sysinfo *  sysinfo)
Parameters
sysinfoA pointer to the Sense Pi info for the updation

Definition at line 187 of file sensebe_ble.c.

References APP_ERROR_CHECK.

◆ sensepi_ble_adv_init()

void sensepi_ble_adv_init ( sensepi_ble_adv_data_t *  sensepi_ble_adv_data)
Parameters
sensepi_ble_adv_dataAdvaertise data and scan response data along with their respective lengths.

Definition at line 361 of file sensepi_ble.c.

References APP_ERROR_CHECK.

◆ sensepi_ble_init()

void sensepi_ble_init ( void(*)(ble_evt_t *evt)  ble_sd_evt,
void(*)(sensepi_config_t *cfg)  config_update 
)
Parameters
ble_sd_evtHandler to send the BLE events to the application
config_updateHandler to send SensePi config to the application

Definition at line 161 of file sensepi_ble.c.

◆ sensepi_ble_update_config()

void sensepi_ble_update_config ( sensepi_config_t *  config)
Parameters
configA pointer to the new Sense Pi configuration

Definition at line 193 of file sensepi_ble.c.

References APP_ERROR_CHECK.

◆ sensepi_ble_update_sysinfo()

void sensepi_ble_update_sysinfo ( sensepi_sysinfo *  sysinfo)
Parameters
sysinfoA pointer to the Sense Pi info for the updation

Definition at line 179 of file sensepi_ble.c.

References APP_ERROR_CHECK.