Modbus Vault v1.0
Loading...
Searching...
No Matches
modbus_parser.c File Reference

Implementation of the modbus parser. More...

#include "modbus_parser.h"
#include "utils.h"
Include dependency graph for modbus_parser.c:

Functions

esp_err_t modbus_parser_check_crc (const uint8_t *data_ptr, size_t length)
 Checks CRC16-Modbus of data validity.
 

Detailed Description

Implementation of the modbus parser.

Function Documentation

◆ modbus_parser_check_crc()

esp_err_t modbus_parser_check_crc ( const uint8_t *  data_ptr,
size_t  length 
)

Checks CRC16-Modbus of data validity.

Parameters
data_ptrPointer to data
lengthData length
Returns
esp_err_t CRC check result
Return values
ESP_OKCRC OK
ESP_ERR_INVALID_ARGProvided invalid argument(s)
ESP_ERR_INVALID_SIZEData size invalid
ESP_ERR_INVALID_CRCCRC invalid
Here is the call graph for this function:
Here is the caller graph for this function: