RZG Flexible Software Package Documentation
Release v2.1.0
|
|
Interface for HS300X Middleware functions.
The HS300X interface provides HS300X functionality.
The HS300X interface can be implemented by:
Data Structures | |
struct | rm_hs300x_callback_args_t |
struct | rm_hs300x_raw_data_t |
struct | rm_hs300x_sensor_data_t |
struct | rm_hs300x_data_t |
struct | rm_hs300x_cfg_t |
struct | rm_hs300x_api_t |
struct | rm_hs300x_instance_t |
Typedefs | |
typedef void | rm_hs300x_ctrl_t |
Enumerations | |
enum | rm_hs300x_event_t |
enum | rm_hs300x_data_type_t |
enum | rm_hs300x_resolution_t |
struct rm_hs300x_callback_args_t |
HS300X callback parameter definition
struct rm_hs300x_raw_data_t |
struct rm_hs300x_sensor_data_t |
struct rm_hs300x_data_t |
HS300X data block
struct rm_hs300x_cfg_t |
HS300X Configuration
Data Fields | |
rm_comms_instance_t const * | p_instance |
Pointer to Communications Middleware instance. | |
void const * | p_context |
Pointer to the user-provided context. | |
void const * | p_extend |
Pointer to extended configuration by instance of interface. | |
void(* | p_callback )(rm_hs300x_callback_args_t *p_args) |
Pointer to callback function. | |
struct rm_hs300x_api_t |
HS300X APIs
Data Fields | |
fsp_err_t(* | open )(rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_cfg_t const *const p_cfg) |
fsp_err_t(* | measurementStart )(rm_hs300x_ctrl_t *const p_ctrl) |
fsp_err_t(* | read )(rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_raw_data_t *const p_raw_data) |
fsp_err_t(* | dataCalculate )(rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_raw_data_t *const p_raw_data, rm_hs300x_data_t *const p_hs300x_data) |
fsp_err_t(* | programmingModeEnter )(rm_hs300x_ctrl_t *const p_ctrl) |
fsp_err_t(* | resolutionChange )(rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_data_type_t const data_type, rm_hs300x_resolution_t const resolution) |
fsp_err_t(* | sensorIdGet )(rm_hs300x_ctrl_t *const p_ctrl, uint32_t *const p_sensor_id) |
fsp_err_t(* | programmingModeExit )(rm_hs300x_ctrl_t *const p_ctrl) |
fsp_err_t(* | close )(rm_hs300x_ctrl_t *const p_ctrl) |
fsp_err_t(* rm_hs300x_api_t::open) (rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_cfg_t const *const p_cfg) |
Open sensor.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure. |
fsp_err_t(* rm_hs300x_api_t::measurementStart) (rm_hs300x_ctrl_t *const p_ctrl) |
Start a measurement.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_hs300x_api_t::read) (rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_raw_data_t *const p_raw_data) |
Read ADC data from HS300X.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data structure. |
fsp_err_t(* rm_hs300x_api_t::dataCalculate) (rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_raw_data_t *const p_raw_data, rm_hs300x_data_t *const p_hs300x_data) |
Calculate humidity and temperature values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_hs300x_data | Pointer to HS300X data structure. |
fsp_err_t(* rm_hs300x_api_t::programmingModeEnter) (rm_hs300x_ctrl_t *const p_ctrl) |
Enter the programming mode.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_hs300x_api_t::resolutionChange) (rm_hs300x_ctrl_t *const p_ctrl, rm_hs300x_data_type_t const data_type, rm_hs300x_resolution_t const resolution) |
Change the sensor resolution.
[in] | p_ctrl | Pointer to control structure. |
[in] | data_type | Data type of HS300X. |
[in] | resolution | Resolution type of HS300X. |
fsp_err_t(* rm_hs300x_api_t::sensorIdGet) (rm_hs300x_ctrl_t *const p_ctrl, uint32_t *const p_sensor_id) |
Get the sensor ID.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_sensor_id | Pointer to sensor ID of HS300X. |
fsp_err_t(* rm_hs300x_api_t::programmingModeExit) (rm_hs300x_ctrl_t *const p_ctrl) |
Exit the programming mode.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_hs300x_api_t::close) (rm_hs300x_ctrl_t *const p_ctrl) |
struct rm_hs300x_instance_t |
HS300X instance
Data Fields | ||
---|---|---|
rm_hs300x_ctrl_t * | p_ctrl |
Pointer to the control structure for this instance |
rm_hs300x_cfg_t const * | p_cfg |
Pointer to the configuration structure for this instance |
rm_hs300x_api_t const * | p_api |
Pointer to the API structure for this instance |
typedef void rm_hs300x_ctrl_t |
HS300X control block. Allocate an instance specific control block to pass into the HS300X API calls.
enum rm_hs300x_event_t |
Event in the callback function
Data type of HS300X
Resolution type of HS300X