Nagano kosen robocon

Dependencies:   mbed QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RS485.h Source File

RS485.h

00001 #ifndef RS485_H_
00002 #define RS485_H_
00003 
00004 namespace RS485 {
00005     #define HUB_SELECTBIT_PIN PA_7
00006     #define MASTER_SELECTBIT_PIN PB_6
00007 
00008     #define HUB_RS485UART_TX PA_9
00009     #define HUB_RS485UART_RX PA_10
00010     #define MASTER_RS485UART_TX PC_6
00011     #define MASTER_RS485UART_RX PC_7
00012 
00013     enum Phase
00014     {
00015         ReceiveWait,
00016         DataReceive
00017     };
00018     
00019     class RS485 {
00020         public:
00021         static void Initialize();
00022         static bool IsCommunicationLost();
00023     };
00024 }
00025 
00026 #endif