teamALI
/
HB2018
ジャイロ追加前
typedef.h@22:24c9c2dedca9, 2018-12-06 (annotated)
- Committer:
- MasashiNomura
- Date:
- Thu Dec 06 11:03:13 2018 +0000
- Revision:
- 22:24c9c2dedca9
- Parent:
- 18:5aa48aec9cae
- Child:
- 23:79e20be4bc5b
Temp State Transfer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takeru0x1103 | 0:ecd925601fc6 | 1 | #ifndef _TYPEDEF_H_ |
takeru0x1103 | 0:ecd925601fc6 | 2 | #define _TYPEDEF_H_ |
takeru0x1103 | 0:ecd925601fc6 | 3 | ///////////////////////////////////////////////////////////////////// |
takeru0x1103 | 18:5aa48aec9cae | 4 | #include "debug.h" |
takeru0x1103 | 0:ecd925601fc6 | 5 | |
takeru0x1103 | 17:f9610f3cfa1b | 6 | //Asciiコード |
takeru0x1103 | 17:f9610f3cfa1b | 7 | #define BS 0x08 |
takeru0x1103 | 17:f9610f3cfa1b | 8 | #define HT 0x09 |
takeru0x1103 | 17:f9610f3cfa1b | 9 | #define TAB 0x09 |
takeru0x1103 | 17:f9610f3cfa1b | 10 | #define LF 0x0A |
takeru0x1103 | 17:f9610f3cfa1b | 11 | #define CR 0x0D |
takeru0x1103 | 17:f9610f3cfa1b | 12 | #define SPC 0x20 |
takeru0x1103 | 17:f9610f3cfa1b | 13 | #define ESC 0x1B |
takeru0x1103 | 17:f9610f3cfa1b | 14 | |
takeru0x1103 | 0:ecd925601fc6 | 15 | /* |
takeru0x1103 | 0:ecd925601fc6 | 16 | * 共通で使用する型の定義 |
takeru0x1103 | 0:ecd925601fc6 | 17 | * |
takeru0x1103 | 0:ecd925601fc6 | 18 | */ |
takeru0x1103 | 0:ecd925601fc6 | 19 | |
takeru0x1103 | 18:5aa48aec9cae | 20 | typedef unsigned char UCHAR; |
takeru0x1103 | 18:5aa48aec9cae | 21 | typedef unsigned short UINT16; |
takeru0x1103 | 18:5aa48aec9cae | 22 | typedef short INT16; |
takeru0x1103 | 18:5aa48aec9cae | 23 | typedef unsigned int UINT32; |
takeru0x1103 | 0:ecd925601fc6 | 24 | |
MasashiNomura | 22:24c9c2dedca9 | 25 | //ユーザースイッチ(ハンドル)のレジスタ読み値のビットフィールド |
MasashiNomura | 22:24c9c2dedca9 | 26 | typedef union{ |
MasashiNomura | 22:24c9c2dedca9 | 27 | UINT16 w; |
MasashiNomura | 22:24c9c2dedca9 | 28 | struct{ |
MasashiNomura | 22:24c9c2dedca9 | 29 | UCHAR axl_r : 1; |
MasashiNomura | 22:24c9c2dedca9 | 30 | UCHAR axl_l : 1; |
MasashiNomura | 22:24c9c2dedca9 | 31 | }bf; |
MasashiNomura | 22:24c9c2dedca9 | 32 | }typUserSw; |
MasashiNomura | 22:24c9c2dedca9 | 33 | |
takeru0x1103 | 0:ecd925601fc6 | 34 | ///////////////////////////////////////////////////////////////////// |
takeru0x1103 | 0:ecd925601fc6 | 35 | #endif |