nRF51 SDK - S110 SoftDevice
|
Functions for simulating sensor data. More...
Data Structures | |
struct | ble_sensorsim_cfg_t |
Triangular waveform sensor simulator configuration. More... | |
struct | ble_sensorsim_state_t |
Triangular waveform sensor simulator state. More... | |
Functions | |
void | ble_sensorsim_init (ble_sensorsim_state_t *p_state, const ble_sensorsim_cfg_t *p_cfg) |
Function for initializing a triangular waveform sensor simulator. More... | |
uint32_t | ble_sensorsim_measure (ble_sensorsim_state_t *p_state, const ble_sensorsim_cfg_t *p_cfg) |
Function for generating a simulated sensor measurement using a triangular waveform generator. More... | |
Functions for simulating sensor data.
Currently only a triangular waveform simulator is implemented.
void ble_sensorsim_init | ( | ble_sensorsim_state_t * | p_state, |
const ble_sensorsim_cfg_t * | p_cfg | ||
) |
Function for initializing a triangular waveform sensor simulator.
[out] | p_state | Current state of simulator. |
[in] | p_cfg | Simulator configuration. |
uint32_t ble_sensorsim_measure | ( | ble_sensorsim_state_t * | p_state, |
const ble_sensorsim_cfg_t * | p_cfg | ||
) |
Function for generating a simulated sensor measurement using a triangular waveform generator.
[in,out] | p_state | Current state of simulator. |
[in] | p_cfg | Simulator configuration. |