lls.h
Go to the documentation of this file.
1 
62 #ifndef __LLS_H__
63 #define __LLS_H__
64 
65 #include "gr55xx_sys.h"
66 #include "custom_config.h"
67 #include <stdint.h>
68 
74 typedef enum
75 {
80 
82 typedef enum
83 {
94 typedef struct
95 {
98 } lls_evt_t;
106 typedef void (*lls_evt_handler_t)(lls_evt_t *p_evt);
114 typedef struct
115 {
118 } lls_init_t;
135 
145 sdk_err_t lls_alert_level_get(uint8_t *p_alert_level);
148 #endif
149 
lls_evt_type_t
lls_evt_type_t
Link Loss Service event type.
Definition: lls.h:83
lls_init_t
Link Loss Service init stucture. This contains all option and data needed for initialization of the s...
Definition: lls.h:115
LLS_ALERT_LEVEL_MILD_ALERT
@ LLS_ALERT_LEVEL_MILD_ALERT
Definition: lls.h:77
lls_alert_levels_t
lls_alert_levels_t
Definition: lls.h:75
lls_evt_t::evt_type
lls_evt_type_t evt_type
Definition: lls.h:96
LLS_ALERT_LEVEL_HIGH_ALERT
@ LLS_ALERT_LEVEL_HIGH_ALERT
Definition: lls.h:78
lls_service_init
sdk_err_t lls_service_init(lls_init_t *p_lls_init)
Initialize a Link Loss Service instance and add in ATT DB.
LLS_ALERT_LEVEL_NO_ALERT
@ LLS_ALERT_LEVEL_NO_ALERT
Definition: lls.h:76
lls_init_t::initial_alert_level
lls_alert_levels_t initial_alert_level
Definition: lls.h:117
gr55xx_sys.h
GR55XX System API.
lls_evt_t
Link Loss Service event.
Definition: lls.h:95
lls_alert_level_get
sdk_err_t lls_alert_level_get(uint8_t *p_alert_level)
Get current value of alert level characteristic.
lls_evt_handler_t
void(* lls_evt_handler_t)(lls_evt_t *p_evt)
Link Loss Service event handler type.
Definition: lls.h:106
sdk_err_t
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
LLS_EVT_LINK_LOSS_ALERT
@ LLS_EVT_LINK_LOSS_ALERT
Definition: lls.h:85
LLS_EVT_INVALID
@ LLS_EVT_INVALID
Definition: lls.h:84
lls_init_t::evt_handler
lls_evt_handler_t evt_handler
Definition: lls.h:116
lls_evt_t::alert_level
lls_alert_levels_t alert_level
Definition: lls.h:97