RA Flexible Software Package Documentation
Release v5.7.0
|
|
Interface for HS400X Middleware functions.
The HS400X interface provides HS400X functionality.
Data Structures | |
struct | rm_hs400x_callback_args_t |
struct | rm_hs400x_resolutions_t |
struct | rm_hs400x_raw_data_t |
struct | rm_hs400x_sensor_data_t |
struct | rm_hs400x_data_t |
struct | rm_hs400x_cfg_t |
struct | rm_hs400x_api_t |
struct | rm_hs400x_instance_t |
Typedefs | |
typedef void | rm_hs400x_ctrl_t |
Enumerations | |
enum | rm_hs400x_event_t |
enum | rm_hs400x_temperature_resolution_t |
enum | rm_hs400x_humidity_resolution_t |
enum | rm_hs400x_periodic_measurement_frequency_t |
struct rm_hs400x_callback_args_t |
HS400X callback parameter definition
struct rm_hs400x_resolutions_t |
HS400X resolution block
struct rm_hs400x_raw_data_t |
struct rm_hs400x_sensor_data_t |
struct rm_hs400x_data_t |
HS400X data block
struct rm_hs400x_cfg_t |
HS400X Configuration
Data Fields | |
rm_hs400x_temperature_resolution_t const | temperature_resolution |
Resolution for temperature. | |
rm_hs400x_humidity_resolution_t const | humidity_resolution |
Resolution for humidity. | |
rm_hs400x_periodic_measurement_frequency_t const | frequency |
Frequency for periodic measurement. | |
rm_comms_instance_t const * | p_comms_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_comms_callback )(rm_hs400x_callback_args_t *p_args) |
I2C Communications callback. | |
struct rm_hs400x_api_t |
HS400X APIs
Data Fields | |
fsp_err_t(* | open )(rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_cfg_t const *const p_cfg) |
fsp_err_t(* | measurementStart )(rm_hs400x_ctrl_t *const p_ctrl) |
fsp_err_t(* | measurementStop )(rm_hs400x_ctrl_t *const p_ctrl) |
fsp_err_t(* | read )(rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_raw_data_t *const p_raw_data) |
fsp_err_t(* | dataCalculate )(rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_raw_data_t *const p_raw_data, rm_hs400x_data_t *const p_hs400x_data) |
fsp_err_t(* | close )(rm_hs400x_ctrl_t *const p_ctrl) |
fsp_err_t(* rm_hs400x_api_t::open) (rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_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_hs400x_api_t::measurementStart) (rm_hs400x_ctrl_t *const p_ctrl) |
Start one shot measurement.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_hs400x_api_t::measurementStop) (rm_hs400x_ctrl_t *const p_ctrl) |
Stop a period measurement.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_hs400x_api_t::read) (rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_raw_data_t *const p_raw_data) |
Read ADC data from HS400X.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data structure. |
fsp_err_t(* rm_hs400x_api_t::dataCalculate) (rm_hs400x_ctrl_t *const p_ctrl, rm_hs400x_raw_data_t *const p_raw_data, rm_hs400x_data_t *const p_hs400x_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_hs400x_data | Pointer to HS400X data structure. |
fsp_err_t(* rm_hs400x_api_t::close) (rm_hs400x_ctrl_t *const p_ctrl) |
Close HS400X.
[in] | p_ctrl | Pointer to control structure. |
struct rm_hs400x_instance_t |
HS400X instance
Data Fields | ||
---|---|---|
rm_hs400x_ctrl_t * | p_ctrl |
Pointer to the control structure for this instance |
rm_hs400x_cfg_t const * | p_cfg |
Pointer to the configuration structure for this instance |
rm_hs400x_api_t const * | p_api |
Pointer to the API structure for this instance |
typedef void rm_hs400x_ctrl_t |
HS400X control block. Allocate an instance specific control block to pass into the HS400X API calls.
enum rm_hs400x_event_t |
Event in the callback function
Resolution type for temperature
Resolution type for humidity