psensor.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. ******************************************************************************
  3. * @file psensor.h
  4. * @author MCD Application Team
  5. * @brief This header file contains the functions prototypes for the
  6. * Pressure Sensor driver.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __PSENSOR_H
  22. #define __PSENSOR_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include <stdint.h>
  28. /** @addtogroup BSP
  29. * @{
  30. */
  31. /** @addtogroup Components
  32. * @{
  33. */
  34. /** @addtogroup PSENSOR
  35. * @{
  36. */
  37. /** @defgroup PSENSOR_Exported_Types
  38. * @{
  39. */
  40. /** @defgroup PSENSOR_Driver_structure Pressure Sensor Driver structure
  41. * @{
  42. */
  43. typedef struct
  44. {
  45. void (*Init)(uint16_t);
  46. uint8_t (*ReadID)(uint16_t);
  47. float (*ReadPressure)(uint16_t);
  48. }PSENSOR_DrvTypeDef;
  49. /**
  50. * @}
  51. */
  52. /**
  53. * @}
  54. */
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */
  61. /**
  62. * @}
  63. */
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* __PSENSOR_H */
  68. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/