
Library set up as dummy module on mbed to mimic Nordic.
rs485.h@0:226550611f0d, 2016-12-12 (annotated)
- Committer:
- Stephen_NewVistas
- Date:
- Mon Dec 12 23:06:58 2016 +0000
- Revision:
- 0:226550611f0d
- Child:
- 2:9ab591cf81b8
Got system working on bus, calling registered functions with ACK/NACK/RESPONSE. Need to clean up.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Stephen_NewVistas | 0:226550611f0d | 1 | #ifndef RS485 |
Stephen_NewVistas | 0:226550611f0d | 2 | #define RS485 |
Stephen_NewVistas | 0:226550611f0d | 3 | |
Stephen_NewVistas | 0:226550611f0d | 4 | #include "packetformatter.h" |
Stephen_NewVistas | 0:226550611f0d | 5 | #include "protocol.h" |
Stephen_NewVistas | 0:226550611f0d | 6 | #include "list.h" |
Stephen_NewVistas | 0:226550611f0d | 7 | #include "comms.h" |
Stephen_NewVistas | 0:226550611f0d | 8 | |
Stephen_NewVistas | 0:226550611f0d | 9 | #ifdef __cplusplus |
Stephen_NewVistas | 0:226550611f0d | 10 | extern "C" { |
Stephen_NewVistas | 0:226550611f0d | 11 | #endif |
Stephen_NewVistas | 0:226550611f0d | 12 | |
Stephen_NewVistas | 0:226550611f0d | 13 | void SerialHandler(unsigned char RXByte); |
Stephen_NewVistas | 0:226550611f0d | 14 | int ChangeState( int ); |
Stephen_NewVistas | 0:226550611f0d | 15 | |
Stephen_NewVistas | 0:226550611f0d | 16 | |
Stephen_NewVistas | 0:226550611f0d | 17 | |
Stephen_NewVistas | 0:226550611f0d | 18 | //extern char processCommand(int command,unsigned char *receivedData); |
Stephen_NewVistas | 0:226550611f0d | 19 | |
Stephen_NewVistas | 0:226550611f0d | 20 | void RS485_Init(); |
Stephen_NewVistas | 0:226550611f0d | 21 | unsigned char RegisterCommand( unsigned char , void (*fx)(unsigned char *) ); |
Stephen_NewVistas | 0:226550611f0d | 22 | int CheckFunction( Packet *_packet ); |
Stephen_NewVistas | 0:226550611f0d | 23 | void SetResponse( Packet *); |
Stephen_NewVistas | 0:226550611f0d | 24 | |
Stephen_NewVistas | 0:226550611f0d | 25 | #ifdef __cplusplus |
Stephen_NewVistas | 0:226550611f0d | 26 | } |
Stephen_NewVistas | 0:226550611f0d | 27 | #endif |
Stephen_NewVistas | 0:226550611f0d | 28 | |
Stephen_NewVistas | 0:226550611f0d | 29 | #endif |