Wireless M-Bus Sensor Core#
The Wireless M-Bus Sensor Core component is designed for use with Wireless M-Bus meters, providing the necessary tools to integrate various sensors into the Wireless M-Bus communication framework. This component simplifies the process of adding sensor data to Wireless M-Bus packets and ensures that the data is correctly formatted and transmitted.
Key Features:
Sensor Initialization: Functions to initialize Wireless M-Bus sensors, ensuring they are correctly configured for communication.
Data Handling: Functions to retrieve and format sensor data for inclusion in Wireless M-Bus packets.
Packet Assembly: Tools to assemble packets with sensor data, ensuring that the data is correctly formatted and transmitted.
Modules#
Functions#
Get the active sensor.
Set the active sensor.
Get the list of available sensors.
Get the number of available sensors.
Initialize the Wireless M-Bus sensor core.
Initialize the Wireless M-Bus sensor core LCD.
Process the Wireless M-Bus sensor core.
Function Documentation#
sl_rail_sdk_wmbus_sensor_core_get_active_sensor#
sl_rail_sdk_wmbus_sensor_t * sl_rail_sdk_wmbus_sensor_core_get_active_sensor (void )
Get the active sensor.
N/A |
Returns
sl_rail_sdk_wmbus_sensor_t* Pointer to the active sensor.
159
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_set_active_sensor#
sl_status_t sl_rail_sdk_wmbus_sensor_core_set_active_sensor (uint8_t id)
Set the active sensor.
[in] | id | Sensor ID |
Returns
sl_status_t: SL_STATUS_OK if successful, SL_STATUS_INVALID_PARAMETER if the sensor ID is invalid
169
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_list_available_sensors#
sl_rail_sdk_wmbus_sensor_t * sl_rail_sdk_wmbus_sensor_core_list_available_sensors (void )
Get the list of available sensors.
N/A |
Returns
sl_rail_sdk_wmbus_sensor_t*: Pointer to the list of available sensors
176
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_get_sensor_count#
size_t sl_rail_sdk_wmbus_sensor_core_get_sensor_count (void )
Get the number of available sensors.
N/A |
Returns
size_t: Number of available sensors
183
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_init#
sl_status_t sl_rail_sdk_wmbus_sensor_core_init (void )
Initialize the Wireless M-Bus sensor core.
N/A |
Calls the initialization function of the active sensor.
Returns
sl_status_t: SL_STATUS_OK if successful, SL_STATUS_FAILED if error
192
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_lcd_init#
void sl_rail_sdk_wmbus_sensor_core_lcd_init (void )
Initialize the Wireless M-Bus sensor core LCD.
N/A |
197
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h
sl_rail_sdk_wmbus_sensor_core_process#
uint16_t sl_rail_sdk_wmbus_sensor_core_process (uint8_t * tx_buffer, uint8_t * access_number)
Process the Wireless M-Bus sensor core.
[in] | tx_buffer | The buffer to store the transmitted data. |
[out] | access_number | The access number for the Wireless M-Bus packet. |
Calls the packet assembler functions of the active sensor. It also passes the tx_buffer, access_number, and Wireless M-Bus accessibility to the packet assembler function.
Returns
The result of the packet assembler function.
209
of file /mnt/raid/workspaces/ws.bVpTDXqvc/overlay/gsdk/app/rail/component/sl_rail_sdk_wmbus_sensor_core/sl_rail_sdk_wmbus_sensor_core.h