#include <stdlib.h>#include <stdint.h>#include <string.h>#include <assert.h>
Go to the source code of this file.
Functions | |
| uint8_t | modbus_get_byte_from_bits (const uint8_t *src, int index, unsigned int nb_bits) |
| float | modbus_get_float (const uint16_t *src) |
| void | modbus_set_bits_from_byte (uint8_t *dest, int index, const uint8_t value) |
| void | modbus_set_bits_from_bytes (uint8_t *dest, int index, unsigned int nb_bits, const uint8_t *tab_byte) |
| void | modbus_set_float (float f, uint16_t *dest) |
| uint8_t modbus_get_byte_from_bits | ( | const uint8_t * | src, |
| int | index, | ||
| unsigned int | nb_bits | ||
| ) |
Definition at line 57 of file modbus-data.c.
| float modbus_get_float | ( | const uint16_t * | src | ) |
Definition at line 77 of file modbus-data.c.
| void modbus_set_bits_from_byte | ( | uint8_t * | dest, |
| int | index, | ||
| const uint8_t | value | ||
| ) |
Definition at line 30 of file modbus-data.c.
| void modbus_set_bits_from_bytes | ( | uint8_t * | dest, |
| int | index, | ||
| unsigned int | nb_bits, | ||
| const uint8_t * | tab_byte | ||
| ) |
Definition at line 41 of file modbus-data.c.
| void modbus_set_float | ( | float | f, |
| uint16_t * | dest | ||
| ) |
Definition at line 89 of file modbus-data.c.