23 lines
719 B
C
23 lines
719 B
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: hr_port.h
|
|
*
|
|
* Author: liangjianfei
|
|
*
|
|
* Create: 2024-4-26
|
|
*--------------------------------------------------------------------------*/
|
|
#ifndef HRSENSOR_PORT_H
|
|
#define HRSENSOR_PORT_H
|
|
|
|
#include <stdint.h>
|
|
#include "errcode.h"
|
|
|
|
errcode_t hrsensor_iic_init(void);
|
|
errcode_t hrsensor_iic_deinit(void);
|
|
errcode_t hrsensor_iic_write_reg(uint8_t addr, uint8_t data);
|
|
errcode_t hrsensor_iic_read_reg(uint8_t addr, uint8_t *recvbuf, uint8_t length);
|
|
void hrsensor_delay_us(uint32_t us);
|
|
void hrsensor_delay_ms(uint32_t ms);
|
|
|
|
#endif |