Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * MyTypes.h
- *
- * Created on: 14 févr. 2012
- * Author: blackswords
- */
- #ifndef MYTYPES_H_
- #define MYTYPES_H_
- /*** General ***/
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
- typedef unsigned int uint32_t;
- typedef char int8_t;
- typedef short int16_t;
- typedef int int32_t;
- /*** Gyroscope & Accelerometer ***/
- typedef struct {
- int16_t x;
- int16_t y;
- int16_t z;
- } axes;
- typedef struct {
- double x;
- double y;
- double z;
- } angle;
- typedef enum {
- DEG_250 = 0,
- DEG_500,
- DEG_1000,
- DEG_2000
- } fullScale;
- typedef enum {
- F_256Hz = 0,
- F_188Hz,
- F_98Hz,
- F_42Hz,
- F_20Hz,
- F_10Hz,
- F_5Hz
- }LPFilter;
- /*** LCD ***/
- typedef struct
- {
- uint16_t LCD_REG;
- uint16_t LCD_RAM;
- } LCD_TypeDef;
- #endif /* MYTYPES_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement