Hospital Analyser  1.0
Enumerations | Functions | Variables
ble_service.h File Reference
#include "bluenrg_gatt_server.h"
#include "bluenrg_gatt_aci.h"
#include "hci.h"
#include "hci_const.h"
#include "bluenrg_gap_aci.h"
#include "sm.h"
#include "bluenrg_hal_aci.h"
#include "bluenrg_aci_const.h"
#include "ble_data_util.h"
Include dependency graph for ble_service.h:

Go to the source code of this file.

Enumerations

enum  bleState { CONNECTED = 0, DISCONNECTED = 1, ADVERTISING = 2 }
 Enum describing BLE connection state.
 

Functions

tBleStatus EnableParing (void)
 EnableParing Clears security database, and enables pairing until DisableParing is called. More...
 
tBleStatus DisableParing (void)
 DisableParing Clears security database, and disables pairing until EnableParing is called. More...
 
tBleStatus ClearSecurityDB (void)
 ClearSecurityDB Clears security database containing parired and bonded devices. More...
 
tBleStatus CreateCustomServices (void)
 CreateCustomServices Creates custom GATT services. More...
 
tBleStatus CreateSingleCustomService (void)
 CreateSingleCustomService Creates single custom GATT service. More...
 
tBleStatus UpdatePedalData (float roll, float ay, float az, float weight)
 UpdatePedalData Updates (sends) data over Bluetooth LE. More...
 
tBleStatus UpdateSinglePedalData (float roll, float ay, float az, float weight)
 UpdatePedalData Updates (sends) data over Bluetooth LE using single GATT charakteristic. More...
 
void HCI_Event_CB (void *pckt)
 
void BLE_DisconnectionComplete_CB (void)
 
void BLE_ConnectionComplete_CB (uint8_t mac_address[6], uint16_t conHandle)
 

Variables

uint8_t enableParing
 enableParing Variable indicating if pairing procedure should be called
 

Function Documentation

tBleStatus ClearSecurityDB ( void  )

ClearSecurityDB Clears security database containing parired and bonded devices.

Returns
Function success (error) status
tBleStatus CreateCustomServices ( void  )

CreateCustomServices Creates custom GATT services.

Returns
Function success (error) status
tBleStatus CreateSingleCustomService ( void  )

CreateSingleCustomService Creates single custom GATT service.

Returns
Function success (error) status
tBleStatus DisableParing ( void  )

DisableParing Clears security database, and disables pairing until EnableParing is called.

Returns
Function success (error) status
tBleStatus EnableParing ( void  )

EnableParing Clears security database, and enables pairing until DisableParing is called.

Returns
Function success (error) status
tBleStatus UpdatePedalData ( float  roll,
float  ay,
float  az,
float  weight 
)

UpdatePedalData Updates (sends) data over Bluetooth LE.

Parameters
rollRoll value to be send
ayLinear acceleration on Y axis
azLinear acceleration on Z axis
weightForce (weight) acting on pedal
Returns
Function success (error) status
tBleStatus UpdateSinglePedalData ( float  roll,
float  ay,
float  az,
float  weight 
)

UpdatePedalData Updates (sends) data over Bluetooth LE using single GATT charakteristic.

Parameters
rollRoll value to be send
ayLinear acceleration on Y axis
azLinear acceleration on Z axis
weightForce (weight) acting on pedal
Returns
Function success (error) status