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#

Configurations

Type definitions

Functions#

sl_status_t

Set the active sensor.

size_t

Get the number of available sensors.

sl_status_t

Initialize the Wireless M-Bus sensor core.

void

Initialize the Wireless M-Bus sensor core LCD.

uint16_t
sl_rail_sdk_wmbus_sensor_core_process(uint8_t *tx_buffer, uint8_t *access_number)

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.

Parameters
N/A

Returns


Definition at line 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.

Parameters
[in]id

Sensor ID

Returns

  • sl_status_t: SL_STATUS_OK if successful, SL_STATUS_INVALID_PARAMETER if the sensor ID is invalid


Definition at line 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.

Parameters
N/A

Returns


Definition at line 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.

Parameters
N/A

Returns

  • size_t: Number of available sensors


Definition at line 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.

Parameters
N/A

Calls the initialization function of the active sensor.

Returns

  • sl_status_t: SL_STATUS_OK if successful, SL_STATUS_FAILED if error


Definition at line 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.

Parameters
N/A

Definition at line 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.

Parameters
[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.


Definition at line 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