Nuvoton / nvt_rs485

Dependents:   NuMaker-mbed-modbus-sample

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers nvt_rs485.h Source File

nvt_rs485.h

00001 #ifndef NVTRS485_H
00002 #define NVTRS485_H
00003  
00004 #include "mbed.h"
00005 #if MBED_MAJOR_VERSION >= 6
00006 #include "MyUnbufferedSerial.h"
00007 class NvtRS485 : public MyUnbufferedSerial {
00008 #else
00009 class NvtRS485 : public Serial {
00010 #endif
00011 public:
00012     NvtRS485(PinName tx, PinName rx, PinName dir);
00013     virtual ~NvtRS485(void);
00014     int set_rs485_mode(PinName dir);
00015 };
00016 
00017 #endif //NVTRS485_H