...
Until a sufficient protocol can be defined for sending driver input data over CAN, we will be using the following dummy scheme for the event data field:Byte #1:
Bits01234567ContentsDevice Number | Byte #2:
...
Byte #3:
...
Byte #4:
Bits | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|
Contents | Device Number20 | 19 | 18 | 17 | 16 |
---|
Device ID | Device State | Analog/Digital | X | X | X | X |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|
Analog Data | X | X | X | X | X | X | X | X |
Bit | Description |
---|
Device ID [7:0] | The ID of the device sending the message |
Device State |
|
Analog/Digital | If the event is an analog signal, con |
Analog Data |
|
Pin Assignments
Input Device | Pin | Type |
---|
Power | PC0 | Digital |
Gas Pedal | PA1 | Analog |
Mechanical Brake | PA2 | Analog |
Direction Selector Forward | PB2 | Digital |
Direction Selector Reverse | PB3 | Digital |
Cruise Control | PC4 | Digital |
Cruise Control Increase | PC5 | Digital |
Cruise Control Decrease | PC6 | Digital |
Turn Signal Right | PC7 | Digital |
Turn Signal Left | PC8 | Digital |
Hazard Light Switch | PC9 | Digital |
I2C Serial Data Line | PB9 | I2C |
I2C Serial Clock Line | PB8 | I2C |
...