Library to control Dodge LX (83.3k) CAN devices
Dependents: DodgeRadioEmulatorv30
RadioState.h@2:ade5ba8a9d37, 2013-01-25 (annotated)
- Committer:
- rtgree01
- Date:
- Fri Jan 25 04:04:27 2013 +0000
- Revision:
- 2:ade5ba8a9d37
- Parent:
- 0:ab4c4438577e
Library to control Dodge LX (83.3k) CAN devices
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rtgree01 | 0:ab4c4438577e | 1 | #ifndef RADIOSTATE_H |
rtgree01 | 0:ab4c4438577e | 2 | #define RADIOSTATE_H |
rtgree01 | 0:ab4c4438577e | 3 | |
rtgree01 | 0:ab4c4438577e | 4 | enum radioMode { AM, FM, CD, SAT, VES, MAX_MODE }; |
rtgree01 | 0:ab4c4438577e | 5 | /* |
rtgree01 | 0:ab4c4438577e | 6 | union SiriusText_u |
rtgree01 | 0:ab4c4438577e | 7 | { |
rtgree01 | 0:ab4c4438577e | 8 | char TextLine[8][64]; |
rtgree01 | 0:ab4c4438577e | 9 | char data[512]; |
rtgree01 | 0:ab4c4438577e | 10 | }; |
rtgree01 | 0:ab4c4438577e | 11 | */ |
rtgree01 | 0:ab4c4438577e | 12 | struct RadioState |
rtgree01 | 0:ab4c4438577e | 13 | { |
rtgree01 | 0:ab4c4438577e | 14 | char marker1; |
rtgree01 | 0:ab4c4438577e | 15 | char marker2; |
rtgree01 | 0:ab4c4438577e | 16 | char marker3; |
rtgree01 | 0:ab4c4438577e | 17 | char marker4; |
rtgree01 | 0:ab4c4438577e | 18 | radioMode _radioMode; |
rtgree01 | 0:ab4c4438577e | 19 | |
rtgree01 | 0:ab4c4438577e | 20 | int _amPreset; |
rtgree01 | 0:ab4c4438577e | 21 | int _amFreq; |
rtgree01 | 0:ab4c4438577e | 22 | |
rtgree01 | 0:ab4c4438577e | 23 | int _fmPreset; |
rtgree01 | 0:ab4c4438577e | 24 | int _fmFreq; |
rtgree01 | 0:ab4c4438577e | 25 | |
rtgree01 | 0:ab4c4438577e | 26 | int _cdNum; |
rtgree01 | 0:ab4c4438577e | 27 | int _cdTrackNum; |
rtgree01 | 0:ab4c4438577e | 28 | int _cdHours; |
rtgree01 | 0:ab4c4438577e | 29 | int _cdMinutes; |
rtgree01 | 0:ab4c4438577e | 30 | int _cdSeconds; |
rtgree01 | 0:ab4c4438577e | 31 | char _cdTime[8]; |
rtgree01 | 0:ab4c4438577e | 32 | |
rtgree01 | 0:ab4c4438577e | 33 | int _siriusPreset; |
rtgree01 | 0:ab4c4438577e | 34 | int _siriusChan; |
rtgree01 | 0:ab4c4438577e | 35 | |
rtgree01 | 0:ab4c4438577e | 36 | int _evicMode; |
rtgree01 | 0:ab4c4438577e | 37 | int _evicPreset; |
rtgree01 | 0:ab4c4438577e | 38 | int _evicFreq; |
rtgree01 | 0:ab4c4438577e | 39 | |
rtgree01 | 0:ab4c4438577e | 40 | int _volume; |
rtgree01 | 0:ab4c4438577e | 41 | int _balance; |
rtgree01 | 0:ab4c4438577e | 42 | int _fade; |
rtgree01 | 0:ab4c4438577e | 43 | int _bass; |
rtgree01 | 0:ab4c4438577e | 44 | int _mid; |
rtgree01 | 0:ab4c4438577e | 45 | int _treble; |
rtgree01 | 0:ab4c4438577e | 46 | |
rtgree01 | 0:ab4c4438577e | 47 | float _batteryVoltage; |
rtgree01 | 0:ab4c4438577e | 48 | int _driverHeatedSeatLevel; |
rtgree01 | 0:ab4c4438577e | 49 | int _passHeatedSeatLevel; |
rtgree01 | 0:ab4c4438577e | 50 | char _vin[24]; |
rtgree01 | 0:ab4c4438577e | 51 | int _headlights; |
rtgree01 | 0:ab4c4438577e | 52 | int _dimmerMode; |
rtgree01 | 0:ab4c4438577e | 53 | int _dimmer; |
rtgree01 | 0:ab4c4438577e | 54 | int _gear; |
rtgree01 | 0:ab4c4438577e | 55 | int _brake; |
rtgree01 | 0:ab4c4438577e | 56 | int _parkingBrake; |
rtgree01 | 0:ab4c4438577e | 57 | char _vesControls[32]; |
rtgree01 | 0:ab4c4438577e | 58 | int _keyPosition; |
rtgree01 | 0:ab4c4438577e | 59 | int _rpm; |
rtgree01 | 0:ab4c4438577e | 60 | int _fanRequested; |
rtgree01 | 0:ab4c4438577e | 61 | int _fanOn; |
rtgree01 | 0:ab4c4438577e | 62 | int _rearDefrost; |
rtgree01 | 0:ab4c4438577e | 63 | int _fuel; |
rtgree01 | 0:ab4c4438577e | 64 | int _speed; |
rtgree01 | 0:ab4c4438577e | 65 | int _odometer; |
rtgree01 | 0:ab4c4438577e | 66 | |
rtgree01 | 0:ab4c4438577e | 67 | int SWCButtons; |
rtgree01 | 0:ab4c4438577e | 68 | |
rtgree01 | 0:ab4c4438577e | 69 | int count ; |
rtgree01 | 0:ab4c4438577e | 70 | }; |
rtgree01 | 0:ab4c4438577e | 71 | |
rtgree01 | 0:ab4c4438577e | 72 | |
rtgree01 | 0:ab4c4438577e | 73 | #endif |