generated from hulk/gd32e23x_template
34 lines
613 B
C
34 lines
613 B
C
//
|
|
// Created by dell on 24-12-20.
|
|
//
|
|
|
|
#ifndef TMP112_H
|
|
#define TMP112_H
|
|
|
|
#include "gd32e23x_it.h"
|
|
#include "gd32e23x.h"
|
|
#include "systick.h"
|
|
#include <stdbool.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
|
|
#include "board_config.h"
|
|
|
|
#ifdef SOFTWARE_IIC
|
|
#include "soft_i2c.h"
|
|
#else
|
|
#include "i2c.h"
|
|
#endif
|
|
|
|
/******************************************************************************/
|
|
|
|
#define TMP112A_ADDR (0x49 << 1)
|
|
|
|
/******************************************************************************/
|
|
|
|
uint32_t tmp112a_get_raw_channel_result(void);
|
|
|
|
#endif //TMP112_H
|