|
|
Go to the source code of this file.
Data Structures | |
| struct | ref_app_breathing_config_t |
| Breathing application config container. More... | |
| struct | ref_app_breathing_result_t |
| Breathing application results container. More... | |
Typedefs | |
| typedef struct ref_app_breathing_handle | ref_app_breathing_handle_t |
| typedef struct ref_app_breathing_handle ref_app_breathing_handle_t |
Definition at line 20 of file ref_app_breathing.h.
State of the application.
Definition at line 60 of file ref_app_breathing.h.
| ref_app_breathing_config_t* ref_app_breathing_config_create | ( | void | ) |
Create a configuration for the ref app breathing.
Definition at line 100 of file ref_app_breathing.c.
| void ref_app_breathing_config_destroy | ( | ref_app_breathing_config_t * | config | ) |
Destory a configuration for the ref app breathing.
| [in] | config | The configuration to destroy |
Definition at line 143 of file ref_app_breathing.c.
| ref_app_breathing_handle_t* ref_app_breathing_create | ( | ref_app_breathing_config_t * | config | ) |
Create a handle for the ref app breathing.
| [in] | config | The configuration to create the handle with |
Definition at line 156 of file ref_app_breathing.c.
| void ref_app_breathing_destroy | ( | ref_app_breathing_handle_t * | handle | ) |
Destroy a handle for the ref app breathing.
| [in] | handle | The ref app breathing handle to destroy |
Definition at line 265 of file ref_app_breathing.c.
| bool ref_app_breathing_get_buffer_size | ( | ref_app_breathing_handle_t * | handle, |
| uint32_t * | buffer_size | ||
| ) |
Get the buffer size needed for the provided ref app breathing handle.
| [in] | handle | The ref app breathing handle to to get the buffer size for |
| [out] | buffer_size | The buffer size |
Definition at line 353 of file ref_app_breathing.c.
| bool ref_app_breathing_prepare | ( | ref_app_breathing_handle_t * | handle, |
| ref_app_breathing_config_t * | config, | ||
| acc_sensor_t * | sensor, | ||
| const acc_cal_result_t * | sensor_cal_result, | ||
| void * | buffer, | ||
| uint32_t | buffer_size | ||
| ) |
Prepare the application to do a measurement.
| [in] | handle | The ref app breathing handle to prepare for |
| [in] | config | The configuration to prepare with |
| [in] | sensor | The sensor instance to prepare |
| [in] | sensor_cal_result | The calibration result to prepare with |
| [in] | buffer | Memory used by the application to prepare the sensor for measurements The buffer will only be used during the duration of this call |
| [in] | buffer_size | The size in bytes of the buffer, should be at least buffer_size from ref_app_breathing_get_buffer_size |
Definition at line 358 of file ref_app_breathing.c.
| bool ref_app_breathing_process | ( | ref_app_breathing_handle_t * | handle, |
| void * | buffer, | ||
| ref_app_breathing_result_t * | result | ||
| ) |
Process the data.
| [in] | handle | The ref app breathing handle for to get the next result for |
| [in] | buffer | A reference to the buffer (populated by acc_sensor_read) containing the data to be processed. |
| [out] | result | Ref app breathing results |
Definition at line 368 of file ref_app_breathing.c.