Wireless M-Bus Thermo Meter Sensor (Wireless M-Bus Meter Only)
License#
Copyright 2024 Silicon Laboratories Inc. www.silabs.com
SPDX-License-Identifier: Zlib
The licensor of this software is Silicon Laboratories Inc.
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
This notice may not be removed or altered from any source distribution.
Functions#
Wireless M-Bus Thermometer initialization function.
Wireless M-Bus Thermometer deinitialization function.
Wireless M-Bus Thermometer measure function function.
Retrieves the sensor data for the Wireless M-Bus thermo meter sensor.
Wireless M-Bus Thermometer 7 segment LCD print function.
Wireless M-Bus Thermometer button pressed function.
Function Documentation#
sl_rail_sdk_wmbus_sensor_thermometer_init#
sl_status_t sl_rail_sdk_wmbus_sensor_thermometer_init (void )
Wireless M-Bus Thermometer initialization function.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
sl_status_t: SL_STATUS_OK if init was successful SL_STATUS_FAIL if init failed
sl_rail_sdk_wmbus_sensor_thermometer_deinit#
sl_status_t sl_rail_sdk_wmbus_sensor_thermometer_deinit (void )
Wireless M-Bus Thermometer deinitialization function.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
sl_status_t: SL_STATUS_OK if init was successful SL_STATUS_FAIL if init failed
sl_rail_sdk_wmbus_sensor_thermometer_measure#
sl_status_t sl_rail_sdk_wmbus_sensor_thermometer_measure (void )
Wireless M-Bus Thermometer measure function function.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Read sensor data.
Returns
sl_status_t: SL_STATUS_OK if measure was successful SL_STATUS_FAIL if measure failed
sl_rail_sdk_wmbus_sensor_thermometer_get_data#
sl_rail_sdk_wmbus_sensor_data_t * sl_rail_sdk_wmbus_sensor_thermometer_get_data (void )
Retrieves the sensor data for the Wireless M-Bus thermo meter sensor.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns a pointer to the sl_rail_sdk_wmbus_sensor_data_t structure that contains the sensor data for the Wireless M-Bus thermo meter sensor.
Returns
Pointer to a sl_rail_sdk_wmbus_sensor_data_t, the sensor data for the Wireless M-Bus thermo meter sensor
sl_rail_sdk_wmbus_sensor_thermometer_print#
sl_status_t sl_rail_sdk_wmbus_sensor_thermometer_print (void )
Wireless M-Bus Thermometer 7 segment LCD print function.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
sl_status_t: SL_STATUS_OK if measure was successful SL_STATUS_FAIL if measure failed
sl_rail_sdk_wmbus_sensor_thermometer_button_pressed
sl_status_t sl_rail_sdk_wmbus_sensor_thermometer_button_pressed (void )
Wireless M-Bus Thermometer button pressed function.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function handles the button press event for the Wireless M-Bus thermo meter sensor, in this case, it changes the displayed value between temperature and humidity.
Returns
sl_status_t: SL_STATUS_OK if measure was successful SL_STATUS_FAIL if measure failed