Solar panel
Loading...
Searching...
No Matches
modbus.h
Go to the documentation of this file.
1/************************************************************************/
6#ifndef MODBUS_H
7#define MODBUS_H
8
9#include <stdint.h>
10
11extern uint8_t modbusAddress;
12extern uint16_t input_registers[2];
13extern uint16_t holding_registers[2];
14
27void modbus_init(uint8_t address);
28
34uint8_t modbus_analyse_and_answer(void);
35
41void modbus_send(uint8_t length);
42
51void modbus_char_recvd(void);
52
60void modbus_timer(void);
61
62#endif /* MODBUS_H */
uint16_t holding_registers[2]
Definition: modbus.c:14
uint8_t modbusAddress
Definition: modbus.c:12
void modbus_init(uint8_t address)
Definition: modbus.c:108
uint8_t modbus_analyse_and_answer(void)
Definition: modbus.c:40
void modbus_char_recvd(void)
Definition: modbus.c:85
void modbus_timer(void)
Definition: modbus.c:33
void modbus_send(uint8_t length)
Definition: modbus.c:92
uint16_t input_registers[2]
Definition: modbus.c:13