Radiocraft Wireless M-Bus extension module  2.18
mbus_frame Struct Reference

STRUCT_BLOCK mbusFrame
Defines the data structure of the VPL STRUCT_BLOCK mbusFrame. More...

Data Fields

int8 control
 Control field. More...
 
int8 reserved
 
int16 manufacture
 Manufacture ID. Part of the device address. More...
 
uint32 id
 Identification number/serial number. Part of the device address. More...
 
uint8 version
 Version number. Part of the device address. More...
 
uint8 type
 Device Type. Part of the device address. More...
 
int16 rssi
 The signal strength (RSSI), if enabled in mbusOpen(). More...
 
uint32 linsec
 Timestamp. Time of receiving frame in linsec. See clockGet VPL function block. More...
 
int16 length
 The length of the additional data in the frame. More...
 
int8 data [MBUS_DATA_LENGTH]
 The additional data received from the M-Bus module. Only the first [length] bytes are valid. More...
 

Detailed Description

STRUCT_BLOCK mbusFrame
Defines the data structure of the VPL STRUCT_BLOCK mbusFrame.

This struct block is used by mbusReceive() for storing the received frame.

Definition at line 83 of file mod_mbus.c.

Field Documentation

◆ control

int8 mbus_frame::control

Control field.

Definition at line 86 of file mod_mbus.c.

Referenced by mbus_th_reader(), and mbusBufferReceive().

◆ data

int8 mbus_frame::data[MBUS_DATA_LENGTH]

The additional data received from the M-Bus module. Only the first [length] bytes are valid.

Definition at line 96 of file mod_mbus.c.

Referenced by mbus_th_reader(), and mbusBufferReceive().

◆ id

uint32 mbus_frame::id

Identification number/serial number. Part of the device address.

Definition at line 89 of file mod_mbus.c.

Referenced by mbus_address_compare(), mbus_th_reader(), and mbusBufferReceive().

◆ length

int16 mbus_frame::length

The length of the additional data in the frame.

Definition at line 95 of file mod_mbus.c.

Referenced by mbus_th_reader(), and mbusBufferReceive().

◆ linsec

uint32 mbus_frame::linsec

Timestamp. Time of receiving frame in linsec. See clockGet VPL function block.

Definition at line 94 of file mod_mbus.c.

Referenced by mbus_th_reader(), and mbusBufferReceive().

◆ manufacture

int16 mbus_frame::manufacture

Manufacture ID. Part of the device address.

Definition at line 88 of file mod_mbus.c.

Referenced by mbus_address_compare(), mbus_th_reader(), and mbusBufferReceive().

◆ reserved

int8 mbus_frame::reserved

Definition at line 87 of file mod_mbus.c.

◆ rssi

int16 mbus_frame::rssi

The signal strength (RSSI), if enabled in mbusOpen().

To get the signal strength in dB, P = -RSSI/2 [dBm]

Definition at line 92 of file mod_mbus.c.

Referenced by mbus_th_reader(), and mbusBufferReceive().

◆ type

uint8 mbus_frame::type

Device Type. Part of the device address.

Definition at line 91 of file mod_mbus.c.

Referenced by mbus_address_compare(), mbus_th_reader(), and mbusBufferReceive().

◆ version

uint8 mbus_frame::version

Version number. Part of the device address.

Definition at line 90 of file mod_mbus.c.

Referenced by mbus_address_compare(), mbus_th_reader(), and mbusBufferReceive().


The documentation for this struct was generated from the following file: