Structure that holds a read result from the read interface.

Public Attributes#

Contains information required for Supervision and True Status.

uint8_t

The sensor must be tied to an endpoint.

Reference of a sensor type structure.

uint8_t

Each bit represents a supported scale.

bool(*

Function pointer to initialize a sensor.

bool(*

Function pointer to deinitialize a sensor.

bool(*

Function pointer to read a sensor value.

Public Attribute Documentation#

rxOpt#

RECEIVE_OPTIONS_TYPE_EX _sensor_interface::rxOpt

Contains information required for Supervision and True Status.

Must be the first element in this struct because TSE assumes this location.


endpoint#

uint8_t _sensor_interface::endpoint

The sensor must be tied to an endpoint.

Must be set to 0 if no endpoints. The endpoint value MUST be located as the second element in this struct as ZAF depends on that for generation of the Node Information Frame.


sensor_type#

const sensor_type_t* _sensor_interface::sensor_type

Reference of a sensor type structure.


supported_scale#

uint8_t _sensor_interface::supported_scale

Each bit represents a supported scale.


init#

bool(* _sensor_interface::init) (void)

Function pointer to initialize a sensor.


deinit#

bool(* _sensor_interface::deinit) (void)

Function pointer to deinitialize a sensor.


read_value#

bool(* _sensor_interface::read_value) (sensor_read_result_t *o_result, uint8_t i_scale)

Function pointer to read a sensor value.