SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

ble_cscs.h File Reference

ble_cscs.h File Reference

Go to the source code of this file.

Data Structures

struct  ble_cscs_evt_t
 Cycling Speed and Cadence Service event. More...
struct  ble_cscs_init_t
 Cycling Speed and Cadence Service init structure. More...
struct  ble_cscs_s
 Cycling Speed and Cadence Service structure. More...
struct  ble_cscs_meas_s
 Cycling Speed and Cadence Service measurement structure. More...

Typedefs

typedef struct ble_cscs_s ble_cscs_t
 Cycling Speed and Cadence Service structure.
typedef void(* ble_cscs_evt_handler_t )(ble_cscs_t *p_cscs, ble_cscs_evt_t *p_evt)
 Cycling Speed and Cadence Service event handler type.
typedef struct ble_cscs_meas_s ble_cscs_meas_t
 Cycling Speed and Cadence Service measurement structure.

Enumerations

enum  ble_cscs_evt_type_t { BLE_CSCS_EVT_NOTIFICATION_ENABLED, BLE_CSCS_EVT_NOTIFICATION_DISABLED }
 

Cycling Speed and Cadence Service event type.

More...

Functions

uint32_t ble_cscs_init (ble_cscs_t *p_cscs, const ble_cscs_init_t *p_cscs_init)
 Function for initializing the Cycling Speed and Cadence Service.
void ble_cscs_on_ble_evt (ble_cscs_t *p_cscs, ble_evt_t *p_ble_evt)
 Function for handling the Application's BLE Stack events.
uint32_t ble_cscs_measurement_send (ble_cscs_t *p_cscs, ble_cscs_meas_t *p_measurement)
 Function for sending cycling speed and cadence measurement if notification has been enabled.

Detailed Description

Definition in file ble_cscs.h.