Hall Effect GATT Service#

Provides hall sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.

Functions#

void
sl_status_t
sl_gatt_service_hall_get(float *field_strength, bool *alert, bool *tamper)

Function Documentation#

sl_gatt_service_hall_on_event#

void sl_gatt_service_hall_on_event (sl_bt_msg_t * evt)
Parameters
[in]evt

Event coming from the Bluetooth stack.

Bluetooth stack event handler.


Definition at line 45 of file common/gatt_service_hall/sl_gatt_service_hall.h

sl_gatt_service_hall_get#

sl_status_t sl_gatt_service_hall_get (float * field_strength, bool * alert, bool * tamper)
Parameters
[out]field_strength

Field strength level (in mT).

[out]alert

Field strength has reached the alert level.

[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.


Definition at line 55 of file common/gatt_service_hall/sl_gatt_service_hall.h

Macro Definition Documentation#

SL_GATT_SERVICE_HALL_FIELD_STRENGTH_INVALID#

#define SL_GATT_SERVICE_HALL_FIELD_STRENGTH_INVALID
Value:
0x7FFFFFFF

Definition at line 43 of file common/gatt_service_hall/config/sl_gatt_service_hall_config.h

SL_GATT_SERVICE_HALL_ALERT_INVALID#

#define SL_GATT_SERVICE_HALL_ALERT_INVALID
Value:
false

Definition at line 48 of file common/gatt_service_hall/config/sl_gatt_service_hall_config.h

SL_GATT_SERVICE_HALL_TAMPER_INVALID#

#define SL_GATT_SERVICE_HALL_TAMPER_INVALID
Value:
true

Definition at line 53 of file common/gatt_service_hall/config/sl_gatt_service_hall_config.h