mlx90614.h 569 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __MLX90614_H
  2. #define __MLX90614_H
  3. #include <stdint.h>
  4. #define MLX90614_ADDR_WRITE 0x00
  5. #define MLX90614_ADDR_READ 0x01
  6. #define MLX90614_RAM 0x00
  7. #define AMBIENT_TEMP 0x06
  8. #define OBJECT_TEMP 0x07
  9. typedef enum
  10. {
  11. OFF = 0,
  12. ON
  13. } SwitchStatus;
  14. extern uint8_t RxBuffer[3];
  15. void MLX90614_Init(void);
  16. float MLX90614_Read_TempData(uint8_t ambient_or_object);
  17. void LedSafeStatusSet(SwitchStatus status);
  18. void LedWarnStatusSet(SwitchStatus status);
  19. void BeepStatusSet(SwitchStatus status);
  20. #endif