Stephen Davis
/
BT_Hub
Library set up as dummy module on mbed to mimic Nordic.
rs485.h
- Committer:
- Stephen_NewVistas
- Date:
- 2016-12-13
- Revision:
- 2:9ab591cf81b8
- Parent:
- 0:226550611f0d
File content as of revision 2:9ab591cf81b8:
#ifndef RS485 #define RS485 #include "packetformatter.h" #include "protocol.h" #include "list.h" #include "comms.h" #ifdef __cplusplus extern "C" { #endif void SerialHandler(unsigned char RXByte); int ChangeState( int ); //extern char processCommand(int command,unsigned char *receivedData); void RS485_Init(); unsigned char RegisterCommand( unsigned char , void (*fx)(unsigned char *) ); int CheckFunction( Packet *_packet ); void SetResponsePacket( Packet *); void setResponseWithData(unsigned char deviceID, unsigned char command, unsigned char * data, unsigned short dataLength); #ifdef __cplusplus } #endif #endif