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.
16 lines
372 B
C
16 lines
372 B
C
1 year ago
|
#ifndef _MODBUS_SERIAL_H
|
||
|
#define _MODBUS_SERIAL_H
|
||
|
|
||
|
#include "serial.h"
|
||
|
#include "common.h"
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#define MODBUS_TIMEOUT 10
|
||
|
|
||
|
int32_t sjzd_serial_init(char *port,int baud,char databit,char parity);
|
||
|
int32_t sjzd_serial_read(uint8_t *pucBuffer,uint16_t usNBytes,uint16_t *usNBytesRead);
|
||
|
int32_t sjzd_serial_write(uint8_t *pucBuffer,uint16_t usNBytes);
|
||
|
|
||
|
#endif
|
||
|
|