Wireless M-Bus#
Wireless M-Bus (WMBUS) configuration.
Enumerations#
The RX variant of the WMBUS T+C PHY.
The RX variant of the WMBUS T+C PHY.
Functions#
Configure WMBUS simultaneous M2O RX of T and C modes feature.
Configure WMBUS simultaneous M2O RX of T and C modes feature.
Enumeration Documentation#
RAIL_WMBUS_Phy_t#
RAIL_WMBUS_Phy_t
The RX variant of the WMBUS T+C PHY.
DeprecatedRAIL 2.x synonym of sl_rail_wmbus_phy_t.
| Enumerator | |
|---|---|
| RAIL_WMBUS_ModeTFrameA | RAIL_RxPacketDetails_t::subPhyId indicating a mode T frame A packet. |
| RAIL_WMBUS_ModeCFrameA | RAIL_RxPacketDetails_t::subPhyId indicating a mode C frame A packet. |
| RAIL_WMBUS_ModeCFrameB | RAIL_RxPacketDetails_t::subPhyId indicating a mode C frame B packet. |
sl_rail_wmbus_phy_t#
sl_rail_wmbus_phy_t
The RX variant of the WMBUS T+C PHY.
| Enumerator | |
|---|---|
| SL_RAIL_WMBUS_MODE_T_FRAME_A | sl_rail_rx_packet_details_t::sub_phy_id indicating a mode T frame A packet. |
| SL_RAIL_WMBUS_MODE_C_FRAME_A | sl_rail_rx_packet_details_t::sub_phy_id indicating a mode C frame A packet. |
| SL_RAIL_WMBUS_MODE_C_FRAME_B | sl_rail_rx_packet_details_t::sub_phy_id indicating a mode C frame B packet. |
Function Documentation#
RAIL_WMBUS_Config#
RAIL_Status_t RAIL_WMBUS_Config (RAIL_Handle_t railHandle, bool enableSimultaneousTCRx)
Configure WMBUS simultaneous M2O RX of T and C modes feature.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| RAIL_Handle_t | [in] | railHandle | A RAIL instance handle. |
| bool | [in] | enableSimultaneousTCRx | true to enable WMBUS simultaneous M2O RX of T and C modes. |
Returns
Status code indicating success of the function call.
If simultaneous M2O RX of T and C modes is enabled, when PHY_wMbus_ModeTC_M2O_100k_frameA is loaded, mode T Frame A and mode C frame A/B can be received. The mode and frame type of the last received packet is available in RAIL_RxPacketDetails_t::subPhyId.
Note
This WMBUS feature is supported only on some parts. The preprocessor symbol RAIL_WMBUS_SUPPORTS_SIMULTANEOUS_T_C_RX and the runtime function RAIL_WMBUS_SupportsSimultaneousTCRx() may be used to test for support.
DeprecatedRAIL 2.x synonym of sl_rail_wmbus_config().
sl_rail_wmbus_config#
sl_rail_status_t sl_rail_wmbus_config (sl_rail_handle_t rail_handle, bool enable_simultaneous_t_c_rx)
Configure WMBUS simultaneous M2O RX of T and C modes feature.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| sl_rail_handle_t | [in] | rail_handle | A real RAIL instance handle. |
| bool | [in] | enable_simultaneous_t_c_rx | true to enable WMBUS simultaneous M2O RX of T and C modes. |
Returns
Status code indicating success of the function call.
If simultaneous M2O RX of T and C modes is enabled, when PHY_wMbus_ModeTC_M2O_100k_frameA is loaded, mode T Frame A and mode C frame A/B can be received. The mode and frame type of the last received packet is available in sl_rail_rx_packet_details_t::sub_phy_id.
Note
This WMBUS feature is supported only on some parts. The preprocessor symbol SL_RAIL_WMBUS_SUPPORTS_SIMULTANEOUS_T_C_RX and the runtime function sl_rail_wmbus_supports_simultaneous_t_c_rx() may be used to test for support.