|
liblightmodbus
2.0
A lightweight, cross-platform Modbus RTU library
|
Functions | |
| uint8_t | modbusMaskRead (const uint8_t *mask, uint16_t maskLength, uint16_t bit) |
| Reads n-th bit from an array. More... | |
| uint8_t | modbusMaskWrite (uint8_t *mask, uint16_t maskLength, uint16_t bit, uint8_t value) |
| Writes n-th bit in an array. More... | |
| uint16_t | modbusCRC (const uint8_t *data, uint16_t length) |
| Calculates 16-bit Modbus CRC of provided data. More... | |
| uint16_t modbusCRC | ( | const uint8_t * | data, |
| uint16_t | length | ||
| ) |
Calculates 16-bit Modbus CRC of provided data.
| data | A pointer to the data to be processed |
| length | Number of bytes, starting at the data pointer, to process |
Here is the call graph for this function:
Here is the caller graph for this function:| uint8_t modbusMaskRead | ( | const uint8_t * | mask, |
| uint16_t | maskLength, | ||
| uint16_t | bit | ||
| ) |
Reads n-th bit from an array.
| mask | A pointer to the array |
| maskLength | The length of the array in bytes |
| bit | Number of the bit to be read |
Here is the caller graph for this function:| uint8_t modbusMaskWrite | ( | uint8_t * | mask, |
| uint16_t | maskLength, | ||
| uint16_t | bit, | ||
| uint8_t | value | ||
| ) |
Writes n-th bit in an array.
| mask | A pointer to the array |
| maskLength | The length of the array in bytes |
| bit | Number of the bit to write |
| value | Bit value to be written |
Here is the caller graph for this function:
1.8.13