Advertisement
blackswords

MyTypes

May 28th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. /*
  2.  * MyTypes.h
  3.  *
  4.  *  Created on: 14 févr. 2012
  5.  *      Author: blackswords
  6.  */
  7.  
  8. #ifndef MYTYPES_H_
  9. #define MYTYPES_H_
  10.  
  11. /***        General         ***/
  12. typedef unsigned char   uint8_t;
  13. typedef unsigned short  uint16_t;
  14. typedef unsigned int    uint32_t;
  15.  
  16. typedef char            int8_t;
  17. typedef short           int16_t;
  18. typedef int             int32_t;
  19.  
  20. /***        Gyroscope & Accelerometer       ***/
  21.  
  22. typedef struct {
  23.     int16_t x;
  24.     int16_t y;
  25.     int16_t z;
  26. } axes;
  27.  
  28. typedef struct {
  29.     double x;
  30.     double y;
  31.     double z;
  32. } angle;
  33.  
  34. typedef enum {
  35.     DEG_250 = 0,
  36.     DEG_500,
  37.     DEG_1000,
  38.     DEG_2000
  39. } fullScale;
  40.  
  41. typedef enum {
  42.     F_256Hz = 0,
  43.     F_188Hz,
  44.     F_98Hz,
  45.     F_42Hz,
  46.     F_20Hz,
  47.     F_10Hz,
  48.     F_5Hz
  49. }LPFilter;
  50.  
  51. /***        LCD         ***/
  52. typedef struct
  53. {
  54.   uint16_t LCD_REG;
  55.   uint16_t LCD_RAM;
  56. } LCD_TypeDef;
  57.  
  58.  
  59. #endif /* MYTYPES_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement