Forking https://os.mbed.com/users/cam/code/Modbus/ to work for NUCLEO 64 boards
Fork of Cam's original FreeModbus port (https://os.mbed.com/users/cam/code/Modbus/)
Change: - Serial implementation to work for NUCLEO 64 boards and receive interrupts instead of timer. (see `portserial.cpp`)
Added: - Custom RTU mode. Allows for external implementation of packet receiving and sending. Sends and receives packets as whole frames (address + PDU) (i.e. this was added for a custom LoRa implementation). implement `xMBRTUCustGetPDU` and `xMBRTUCustSendResponse` (see `mbport.h`) and call `eMBRTUCustomInit( address )`. implementations need to be fully initialised as `eMBRTUCustomInit` only sets the address and nothing else.
Files at revision 4:7621103c5a40
Name | Size | Actions |
---|---|---|
[up] | ||
mb.cpp | 13498 | Revisions Annotate |
mb.h | 20864 | Revisions Annotate |
mbconfig.h | 5166 | Revisions Annotate |
mbcrc.cpp | 5530 | Revisions Annotate |
mbcrc.h | 1771 | Revisions Annotate |
mbframe.h | 3788 | Revisions Annotate |
mbfunc.h | 3114 | Revisions Annotate |
mbfunccoils.cpp | 9887 | Revisions Annotate |
mbfuncdiag.cpp | 1662 | Revisions Annotate |
mbfuncdisc.cpp | 4614 | Revisions Annotate |
mbfuncholding.cpp | 12201 | Revisions Annotate |
mbfuncinput.cpp | 4821 | Revisions Annotate |
mbfuncother.cpp | 3534 | Revisions Annotate |
mbport.h | 5147 | Revisions Annotate |
mbproto.h | 3677 | Revisions Annotate |
mbrtu.cpp | 12101 | Revisions Annotate |
mbrtu.h | 2380 | Revisions Annotate |
mbrtucustom.cpp | 3680 | Revisions Annotate |
mbrtucustom.h | 2146 | Revisions Annotate |
mbutils.cpp | 5099 | Revisions Annotate |
mbutils.h | 4218 | Revisions Annotate |
port.h | 1508 | Revisions Annotate |
portevent.cpp | 1749 | Revisions Annotate |
portserial.cpp | 3704 | Revisions Annotate |
porttimer.cpp | 2674 | Revisions Annotate |