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.
12 lines
523 B
C
12 lines
523 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 readInputStatus(uint8_t slaveid, uint16_t address, uint16_t amount);
|
|
void writeCoil(uint8_t slaveid, uint16_t address, uint16_t value);
|