You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
615 B
C
14 lines
615 B
C
#include <stdint.h>
|
|
|
|
void timer2_init(void);
|
|
void modbus_master_init(void);
|
|
int8_t wait_receive(uint8_t len, uint16_t dest[], uint8_t timeout);
|
|
int8_t wait_write(uint8_t timeout);
|
|
void readReg(uint8_t slaveid, uint16_t address, uint8_t amount);
|
|
void writeReg(uint8_t slaveid, uint16_t address, uint16_t value);
|
|
void readInputReg(uint8_t slaveid, uint16_t address, uint16_t amount);
|
|
void readInputState(uint8_t slaveid, uint16_t address, uint16_t amount);
|
|
void writeCoil(uint8_t slaveid, uint16_t address, uint16_t value);
|
|
void readCoil(uint8_t slaveid, uint16_t address);
|
|
int8_t wait_receive_coil(uint8_t timeout);
|