Radiocraft Wireless M-Bus extension module  2.18
mbus_frame_list Struct Reference

The buffer list structure, specifying overwrite policy, buffer size and counters. More...

Data Fields

uint16 counter
 Counter that tells how many elements has been inserted in the buffer list. More...
 
uint16 frames_max
 Maximum amount of elements the list will accept. More...
 
uint16 discarded
 Counter that tells how many entries were discarded, also in the case of overwriting. More...
 
int8 overwrite
 Boolean value to decide on policy when buffer is full. On True we overwrite by removing oldest frame otherwise discard the newly received frame. More...
 
tdef_mbus_frame_list_elemflist_head
 Pointer to the head of the list, where the latest frames received are kept. More...
 
tdef_mbus_frame_list_elemflist_tail
 Pointer to the tail of the list, where the oldest frames are kept. More...
 

Detailed Description

The buffer list structure, specifying overwrite policy, buffer size and counters.

Definition at line 262 of file mod_mbus.c.

Field Documentation

◆ counter

uint16 mbus_frame_list::counter

Counter that tells how many elements has been inserted in the buffer list.

Definition at line 265 of file mod_mbus.c.

Referenced by flist_append(), flist_clear(), flist_remove_first_element(), flist_search_remove(), mbusGetBufferLevel(), and mbusStartReader().

◆ discarded

uint16 mbus_frame_list::discarded

Counter that tells how many entries were discarded, also in the case of overwriting.

Definition at line 269 of file mod_mbus.c.

Referenced by flist_append(), and mbusStartReader().

◆ flist_head

tdef_mbus_frame_list_elem* mbus_frame_list::flist_head

Pointer to the head of the list, where the latest frames received are kept.

Definition at line 273 of file mod_mbus.c.

Referenced by flist_append(), flist_clear(), flist_remove_first_element(), flist_search_remove(), and mbusStartReader().

◆ flist_tail

tdef_mbus_frame_list_elem* mbus_frame_list::flist_tail

Pointer to the tail of the list, where the oldest frames are kept.

Definition at line 275 of file mod_mbus.c.

Referenced by flist_append(), flist_clear(), flist_remove_first_element(), flist_search_remove(), and mbusStartReader().

◆ frames_max

uint16 mbus_frame_list::frames_max

Maximum amount of elements the list will accept.

Definition at line 267 of file mod_mbus.c.

Referenced by flist_append(), mbusGetBufferLevel(), and mbusStartReader().

◆ overwrite

int8 mbus_frame_list::overwrite

Boolean value to decide on policy when buffer is full. On True we overwrite by removing oldest frame otherwise discard the newly received frame.

Definition at line 271 of file mod_mbus.c.

Referenced by flist_append(), and mbusStartReader().


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