|
Modbus Vault v1.0
|
Implementation of the modbus parser. More...
Functions | |
| esp_err_t | modbus_parser_check_crc (const uint8_t *data_ptr, size_t length) |
| Checks CRC16-Modbus of data validity. | |
Implementation of the modbus parser.
| esp_err_t modbus_parser_check_crc | ( | const uint8_t * | data_ptr, |
| size_t | length | ||
| ) |
Checks CRC16-Modbus of data validity.
| data_ptr | Pointer to data |
| length | Data length |
| ESP_OK | CRC OK |
| ESP_ERR_INVALID_ARG | Provided invalid argument(s) |
| ESP_ERR_INVALID_SIZE | Data size invalid |
| ESP_ERR_INVALID_CRC | CRC invalid |