#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"
Go to the source code of this file.
|
| enum | bleState { CONNECTED = 0,
DISCONNECTED = 1,
ADVERTISING = 2
} |
| | Enum describing BLE connection state.
|
| |
|
| 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) |
| |
|
|
uint8_t | enableParing |
| | enableParing Variable indicating if pairing procedure should be called
|
| |
| 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
-
| roll | Roll value to be send |
| ay | Linear acceleration on Y axis |
| az | Linear acceleration on Z axis |
| weight | Force (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
-
| roll | Roll value to be send |
| ay | Linear acceleration on Y axis |
| az | Linear acceleration on Z axis |
| weight | Force (weight) acting on pedal |
- Returns
- Function success (error) status