Fix Frame Count Bit handling

Extend mbus_send_request_frame() to set FCB
Set FCB in case of primary adressing
This commit is contained in:
Stefan Wahren
2015-06-27 12:55:12 +02:00
parent 716d712314
commit 61f6942448
6 changed files with 21 additions and 12 deletions

View File

@ -288,12 +288,13 @@ int mbus_send_switch_baudrate_frame(mbus_handle * handle, int address, long baud
/**
* Sends request frame (REQ_UD2) to given slave using "unified" handle
*
* @param handle Initialized handle
* @param address Address (0-255)
* @param handle Initialized handle
* @param address Address (0-255)
* @param frame_count_bit Frame Count Bit (0-1)
*
* @return Zero when successful.
*/
int mbus_send_request_frame(mbus_handle * handle, int address);
int mbus_send_request_frame(mbus_handle * handle, int address, char frame_count_bit);
/**
* Sends user data frame (SND_UD) to given slave using "unified" handle