44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) Fenda Technologies Co., Ltd. 2021. All rights reserved.
|
|
*
|
|
* Description: ppg_port.h
|
|
*
|
|
* Author: shey.tanxiaoyu
|
|
*
|
|
* Create: 2022-04-20
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef __PPG_PORT__H
|
|
#define __PPG_PORT__H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
void ppg_port_delay_us(uint16_t us);
|
|
void ppg_port_delay_ms(uint32_t ms);
|
|
void ppg_port_bus_open(void);
|
|
void ppg_port_bus_close(void);
|
|
void ppg_port_bus_cs_low(void);
|
|
void ppg_port_bus_cs_high(void);
|
|
int32_t ppg_port_bus_write(uint8_t *write_buf, uint16_t write_len);
|
|
int32_t ppg_port_bus_read(uint8_t *read_buf, uint16_t read_len);
|
|
void ppg_port_exti_enable(void *p_callback);
|
|
void ppg_port_exti_disable(void);
|
|
void ppg_port_reset_pin_init(void);
|
|
void ppg_port_reset_pin_deinit(void);
|
|
void ppg_port_reset_pin_set(uint8_t val);
|
|
void ppg_port_power_pin_init(void);
|
|
void ppg_port_power_pin_deinit(void);
|
|
void ppg_port_power_pin_set(uint8_t val);
|
|
uint8_t ppg_port_power_pin_get(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __PPG_PORT__H */
|
|
|