Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Sensor Data Simulator
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. | |
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. |
Detailed Description
Functions for simulating sensor data.
Currently only a triangular waveform simulator is implemented.
Function Documentation
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.
- Parameters:
-
[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.
- Parameters:
-
[in,out] p_state Current state of simulator. [in] p_cfg Simulator configuration.
- Returns:
- Simulator output.
Generated on Tue Jul 12 2022 18:47:34 by
