![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BMS I/Fプログラム
LTC6803.h@0:2d6ffd5a4d2e, 2015-01-12 (annotated)
- Committer:
- NT32
- Date:
- Mon Jan 12 02:51:41 2015 +0000
- Revision:
- 0:2d6ffd5a4d2e
- Child:
- 1:5690684e5460
test version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NT32 | 0:2d6ffd5a4d2e | 1 | |
NT32 | 0:2d6ffd5a4d2e | 2 | #define CRCDEFAULT 0x41 |
NT32 | 0:2d6ffd5a4d2e | 3 | |
NT32 | 0:2d6ffd5a4d2e | 4 | #define WRCFG 0x01 |
NT32 | 0:2d6ffd5a4d2e | 5 | #define RDCFG 0x02 |
NT32 | 0:2d6ffd5a4d2e | 6 | #define RDCV 0x04 |
NT32 | 0:2d6ffd5a4d2e | 7 | #define RDCVA 0x06 |
NT32 | 0:2d6ffd5a4d2e | 8 | #define RDCVB 0x08 |
NT32 | 0:2d6ffd5a4d2e | 9 | #define RDCVC 0x0A |
NT32 | 0:2d6ffd5a4d2e | 10 | #define RDFLG 0x0C |
NT32 | 0:2d6ffd5a4d2e | 11 | #define RDTMP 0x0E |
NT32 | 0:2d6ffd5a4d2e | 12 | #define STCVADALL 0x10 |
NT32 | 0:2d6ffd5a4d2e | 13 | #define STCVAD1 0x11 |
NT32 | 0:2d6ffd5a4d2e | 14 | #define STCVAD2 0x12 |
NT32 | 0:2d6ffd5a4d2e | 15 | #define STCVAD3 0x13 |
NT32 | 0:2d6ffd5a4d2e | 16 | #define STCVAD4 0x14 |
NT32 | 0:2d6ffd5a4d2e | 17 | #define STCVAD5 0x15 |
NT32 | 0:2d6ffd5a4d2e | 18 | #define STCVAD6 0x16 |
NT32 | 0:2d6ffd5a4d2e | 19 | #define STCVAD7 0x17 |
NT32 | 0:2d6ffd5a4d2e | 20 | #define STCVAD8 0x18 |
NT32 | 0:2d6ffd5a4d2e | 21 | #define STCVAD9 0x19 |
NT32 | 0:2d6ffd5a4d2e | 22 | #define STCVAD10 0x1A |
NT32 | 0:2d6ffd5a4d2e | 23 | #define STCVAD11 0x1B |
NT32 | 0:2d6ffd5a4d2e | 24 | #define STCVAD12 0x1C |
NT32 | 0:2d6ffd5a4d2e | 25 | #define STCVADFF 0x1D |
NT32 | 0:2d6ffd5a4d2e | 26 | #define STCVADSELF1 0x1E |
NT32 | 0:2d6ffd5a4d2e | 27 | #define STCVADSELF2 0x1F |
NT32 | 0:2d6ffd5a4d2e | 28 | #define STOWADALL 0x20 |
NT32 | 0:2d6ffd5a4d2e | 29 | #define STOWAD1 0x21 |
NT32 | 0:2d6ffd5a4d2e | 30 | #define STOWAD2 0x22 |
NT32 | 0:2d6ffd5a4d2e | 31 | #define STOWAD3 0x23 |
NT32 | 0:2d6ffd5a4d2e | 32 | #define STOWAD4 0x24 |
NT32 | 0:2d6ffd5a4d2e | 33 | #define STOWAD5 0x25 |
NT32 | 0:2d6ffd5a4d2e | 34 | #define STOWAD6 0x26 |
NT32 | 0:2d6ffd5a4d2e | 35 | #define STOWAD7 0x27 |
NT32 | 0:2d6ffd5a4d2e | 36 | #define STOWAD8 0x28 |
NT32 | 0:2d6ffd5a4d2e | 37 | #define STOWAD9 0x29 |
NT32 | 0:2d6ffd5a4d2e | 38 | #define STOWAD10 0x2A |
NT32 | 0:2d6ffd5a4d2e | 39 | #define STOWAD11 0x2B |
NT32 | 0:2d6ffd5a4d2e | 40 | #define STOWAD12 0x2C |
NT32 | 0:2d6ffd5a4d2e | 41 | #define STTMPADALL 0x30 |
NT32 | 0:2d6ffd5a4d2e | 42 | #define STTMPADOUT1 0x31 |
NT32 | 0:2d6ffd5a4d2e | 43 | #define STTMPADOUT2 0x32 |
NT32 | 0:2d6ffd5a4d2e | 44 | #define STTMPADIN 0x33 |
NT32 | 0:2d6ffd5a4d2e | 45 | #define STTMPADSELF1 0x3E |
NT32 | 0:2d6ffd5a4d2e | 46 | #define STTMPADSELF2 0x3F |
NT32 | 0:2d6ffd5a4d2e | 47 | #define PLADC 0x40 |
NT32 | 0:2d6ffd5a4d2e | 48 | #define PLINT 0x50 |
NT32 | 0:2d6ffd5a4d2e | 49 | #define DAGN 0x52 |
NT32 | 0:2d6ffd5a4d2e | 50 | #define RDDGNR 0x54 |
NT32 | 0:2d6ffd5a4d2e | 51 | #define STCVDCALL 0x60 |
NT32 | 0:2d6ffd5a4d2e | 52 | #define STCVDC1 0x61 |
NT32 | 0:2d6ffd5a4d2e | 53 | #define STCVDC2 0x62 |
NT32 | 0:2d6ffd5a4d2e | 54 | #define STCVDC3 0x63 |
NT32 | 0:2d6ffd5a4d2e | 55 | #define STCVDC4 0x64 |
NT32 | 0:2d6ffd5a4d2e | 56 | #define STCVDC5 0x65 |
NT32 | 0:2d6ffd5a4d2e | 57 | #define STCVDC6 0x66 |
NT32 | 0:2d6ffd5a4d2e | 58 | #define STCVDC7 0x67 |
NT32 | 0:2d6ffd5a4d2e | 59 | #define STCVDC8 0x68 |
NT32 | 0:2d6ffd5a4d2e | 60 | #define STCVDC9 0x69 |
NT32 | 0:2d6ffd5a4d2e | 61 | #define STCVDC10 0x6A |
NT32 | 0:2d6ffd5a4d2e | 62 | #define STCVDC11 0x6B |
NT32 | 0:2d6ffd5a4d2e | 63 | #define STCVDC12 0x6C |
NT32 | 0:2d6ffd5a4d2e | 64 | #define STOWDCALL 0x70 |
NT32 | 0:2d6ffd5a4d2e | 65 | #define STOWDC1 0x71 |
NT32 | 0:2d6ffd5a4d2e | 66 | #define STOWDC2 0x72 |
NT32 | 0:2d6ffd5a4d2e | 67 | #define STOWDC3 0x73 |
NT32 | 0:2d6ffd5a4d2e | 68 | #define STOWDC4 0x74 |
NT32 | 0:2d6ffd5a4d2e | 69 | #define STOWDC5 0x75 |
NT32 | 0:2d6ffd5a4d2e | 70 | #define STOWDC6 0x76 |
NT32 | 0:2d6ffd5a4d2e | 71 | #define STOWDC7 0x77 |
NT32 | 0:2d6ffd5a4d2e | 72 | #define STOWDC8 0x78 |
NT32 | 0:2d6ffd5a4d2e | 73 | #define STOWDC9 0x79 |
NT32 | 0:2d6ffd5a4d2e | 74 | #define STOWDC10 0x7A |
NT32 | 0:2d6ffd5a4d2e | 75 | #define STOWDC11 0x7B |
NT32 | 0:2d6ffd5a4d2e | 76 | #define STOWDC12 0x7C |
NT32 | 0:2d6ffd5a4d2e | 77 | |
NT32 | 0:2d6ffd5a4d2e | 78 | typedef union{ |
NT32 | 0:2d6ffd5a4d2e | 79 | struct{ |
NT32 | 0:2d6ffd5a4d2e | 80 | unsigned char b0:1; |
NT32 | 0:2d6ffd5a4d2e | 81 | unsigned char b1:1; |
NT32 | 0:2d6ffd5a4d2e | 82 | unsigned char b2:1; |
NT32 | 0:2d6ffd5a4d2e | 83 | unsigned char reserved:5; |
NT32 | 0:2d6ffd5a4d2e | 84 | }in; |
NT32 | 0:2d6ffd5a4d2e | 85 | char byte; |
NT32 | 0:2d6ffd5a4d2e | 86 | }datainput; |