-
Notifications
You must be signed in to change notification settings - Fork 142
Context options
lategoodbye edited this page Dec 18, 2012
·
2 revisions
Each M-Bus handle has a variety of context-specific options. These options can be changed with the function mbus_context_set_option
. Each option is of the enumeration type mbus_context_option
.
- Option:
MBUS_OPTION_MAX_RETRY
0 - 9
Default: 0
Description: This option defines the maximum attempts of retransmission to get data from a M-Bus device. Zero means no attempts of retransmission.
- Option:
MBUS_OPTION_PURGE_FIRST_FRAME
MBUS_FRAME_PURGE_M2S
Range: MBUS_FRAME_PURGE_NONE | MBUS_FRAME_PURGE_M2S | MBUS_FRAME_PURGE_S2M
Description: This option controls the echo cancelation for mbus_recv_frame
.
Available values are:
-
MBUS_FRAME_PURGE_NONE
= no echo cancelation -
MBUS_FRAME_PURGE_M2S
= echo cancelation for first frame from master to slave -
MBUS_FRAME_PURGE_S2M
= echo cancelation for first frame from slave to master