HWConfig.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*****************************************************************
  2. *****************************************************************
  3. *** **
  4. *** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. *** **
  6. *** All Rights Reserved. **
  7. *** **
  8. *** 6145-F, Northbelt Parkway, Norcross, **
  9. *** **
  10. *** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. *** **
  12. *****************************************************************
  13. ******************************************************************
  14. *
  15. * HWConfig.h
  16. * Hardware Config Data
  17. *
  18. * Author: Rama Rao Bisa <ramab@ami.com>
  19. *
  20. ******************************************************************/
  21. #ifndef HWCONFIG_H
  22. #define HWCONFIG_H
  23. #define MAX_I2C_BUSES 1
  24. #pragma pack( 1 )
  25. /**
  26. * @struct ThreshSenConfig_T
  27. * @brief Threshold sensor configuration information.
  28. **/
  29. typedef struct
  30. {
  31. INT8U Enable;
  32. INT8U Interval;
  33. } PACKED ThreshSenConfig_T;
  34. /**
  35. * @struct NonThreshSenConfig_T
  36. * @brief Non-threshold sensor configuration information.
  37. **/
  38. typedef struct
  39. {
  40. INT8U Enable;
  41. INT8U Interval;
  42. } PACKED NonThreshSenConfig_T;
  43. /**
  44. * @struct I2CConfig_T
  45. * @brief I2C configuration information.
  46. **/
  47. typedef struct
  48. {
  49. INT8U Active;
  50. INT8U OwnSlaveAddr;
  51. INT8U IntrNo;
  52. INT16U OpFreq;
  53. INT16U BaseRegAddr;
  54. } PACKED I2CConfig_T;
  55. /**
  56. * @struct HWConfig_T
  57. * @brief Hardware configuration information.
  58. **/
  59. typedef struct
  60. {
  61. INT8U HWCSignature [4];
  62. I2CConfig_T I2CConfig [MAX_I2C_BUSES];
  63. ThreshSenConfig_T ThreshSenConfig [MAX_SENSORS_ALLOWED];
  64. NonThreshSenConfig_T NonThreshSenConfig [MAX_SENSORS_ALLOWED];
  65. } PACKED HWConfig_T;
  66. #pragma pack( )
  67. #endif /* HWCONFIG_H */