Moved nmbs_crc_calc() declaration

This commit is contained in:
Valerio De Benedetto 2022-06-26 09:26:07 +02:00
parent 4b613aa03d
commit 30c7ce3854

View File

@ -226,12 +226,6 @@ void nmbs_set_byte_timeout(nmbs_t* nmbs, int32_t timeout_ms);
*/
void nmbs_set_platform_arg(nmbs_t* nmbs, void* arg);
/** Calculate the Modbus CRC of some data.
* @param data Data
* @param length Length of the data
*/
uint16_t nmbs_crc_calc(const uint8_t* data, uint32_t length);
#ifndef NMBS_CLIENT_DISABLED
/** Set the recipient server address of the next request on RTU transport.
* @param nmbs pointer to the nmbs_t instance
@ -369,6 +363,12 @@ nmbs_error nmbs_send_raw_pdu(nmbs_t* nmbs, uint8_t fc, const void* data, uint16_
nmbs_error nmbs_receive_raw_pdu_response(nmbs_t* nmbs, void* data_out, uint16_t data_out_len);
#endif
/** Calculate the Modbus CRC of some data.
* @param data Data
* @param length Length of the data
*/
uint16_t nmbs_crc_calc(const uint8_t* data, uint32_t length);
#ifndef NMBS_STRERROR_DISABLED
/** Convert a nmbs_error to string
* @param error error to be converted