Hall Effect GATT Service#
Provides hall sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.
Functions#
void
sl_gatt_service_hall_on_event(sl_bt_msg_t *evt)
sl_status_t
sl_gatt_service_hall_get(float *field_strength, bool *alert, bool *tamper)
Macros#
#define
SL_GATT_SERVICE_HALL_FIELD_STRENGTH_INVALID 0x7FFFFFFF
#define
SL_GATT_SERVICE_HALL_ALERT_INVALID false
#define
SL_GATT_SERVICE_HALL_TAMPER_INVALID true
Function Documentation#
sl_gatt_service_hall_on_event#
void sl_gatt_service_hall_on_event (sl_bt_msg_t * evt)
Parameters
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| sl_bt_msg_t * | [in] | evt | Event coming from the Bluetooth stack. | 
Bluetooth stack event handler.
sl_gatt_service_hall_get#
sl_status_t sl_gatt_service_hall_get (float * field_strength, bool * alert, bool * tamper)
Parameters
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| float * | [out] | field_strength | Field strength level (in mT). | 
| bool * | [out] | alert | Field strength has reached the alert level. | 
| bool * | [out] | tamper | Field strength has reached the tamper level. | 
Getter for Field Strength and State characteristic values. Returns
- Status of the operation. 
Note
- To be implemented in user code.