Skip to content

Struct SYN_MBUS_Decoder

ClassList > SYN_MBUS_Decoder

M-Bus streaming state machine decoder.

  • #include <syn_mbus.h>

Public Attributes

Type Name
SYN_MBUS_FrameCallback callback
void * ctx
size_t expected_len
uint8_t rx_buf
size_t rx_idx
uint8_t state

Public Attributes Documentation

variable callback

SYN_MBUS_FrameCallback SYN_MBUS_Decoder::callback;

Frame completion callback


variable ctx

void* SYN_MBUS_Decoder::ctx;

Callback user context


variable expected_len

size_t SYN_MBUS_Decoder::expected_len;

Expected total frame length


variable rx_buf

uint8_t SYN_MBUS_Decoder::rx_buf[SYN_MBUS_MAX_FRAME_LEN];

Internal frame receive buffer


variable rx_idx

size_t SYN_MBUS_Decoder::rx_idx;

Buffer write index


variable state

uint8_t SYN_MBUS_Decoder::state;

Decoder state machine state



The documentation for this class was generated from the following file src/syntropic/proto/syn_mbus.h