NuMaker RS485 lib
Dependents: NuMaker-mbed-modbus-sample
Diff: nvt_rs485.h
- Revision:
- 0:22be4d425fdb
- Child:
- 1:783999122629
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nvt_rs485.h Tue Sep 20 01:17:32 2016 +0000 @@ -0,0 +1,20 @@ +#ifndef NVTRS485_H +#define NVTRS485_H + +#include "mbed.h" + +class NvtRS485 : public Serial { + +public: + enum E_PFM { + NUC472, + CNT + }; + + E_PFM m_ePFMID; + NvtRS485(PinName tx, PinName rx, PinName dir, E_PFM pfm=NUC472); + virtual ~NvtRS485(void); + int set_rs485_mode(PinName dir); +}; + +#endif //NVTRS485_H \ No newline at end of file