12 #include "hpm_soc_feature.h"
17 typedef enum _sccb_xfer_flag {
26 typedef struct _sccb_bus {
uint32_t hpm_stat_t
Definition: hpm_common.h:123
@ sccb_xfer_suspend
Definition: hpm_sccb.h:23
hpm_stat_t sccb_master_writew2(sccb_type sccb, uint8_t slv_addr, uint16_t reg_addr, uint16_t reg_data)
sccb master write 16bit data of specify 16bit register from certain slave device
Definition: hpm_sccb.c:87
hpm_stat_t sccb_master_init(sccb_type sccb)
sccb master initialization
Definition: hpm_sccb.c:10
hpm_stat_t sccb_master_readb(sccb_type sccb, uint8_t slv_addr, uint8_t reg_addr, uint8_t *reg_data)
sccb master read 8bit data of specify 8bit register from certain slave device
Definition: hpm_sccb.c:32
hpm_stat_t sccb_master_readw2(sccb_type sccb, uint8_t slv_addr, uint16_t reg_addr, uint16_t *reg_data)
sccb master read 16bit data of specify 16it register from certain slave device
Definition: hpm_sccb.c:76
uint8_t sccb_master_scan(sccb_type sccb)
sccb master scan slave addr
Definition: hpm_sccb.c:16
struct _sccb_bus hpm_sccb_bus_t
@ sccb_xfer_no_flags
Definition: hpm_sccb.h:19
hpm_stat_t cambus_write_bytes(sccb_type sccb, uint8_t slv_addr, uint8_t *buf, const uint32_t len, uint8_t flags)
sccb master weite the specified number of bytes continuously at the specified flag
Definition: hpm_sccb.c:101
hpm_stat_t sccb_master_gencall(sccb_type sccb, uint8_t cmd)
sccb master gen call slave
Definition: hpm_sccb.c:26
hpm_stat_t sccb_master_readw(sccb_type sccb, uint8_t slv_addr, uint8_t reg_addr, uint16_t *reg_data)
sccb master read 16bit data of specify 8bit register from certain slave device
Definition: hpm_sccb.c:59
enum _sccb_xfer_flag sccb_xfer_flags_t
hpm_stat_t sccb_master_writeb2(sccb_type sccb, uint8_t slv_addr, uint16_t reg_addr, uint8_t reg_data)
sccb master write 8bit data of specify 16bit register from certain slave device
Definition: hpm_sccb.c:50
hpm_stat_t sccb_master_writeb(sccb_type sccb, uint8_t slv_addr, uint8_t reg_addr, uint8_t reg_data)
sccb master write 8bit data of specify 8bit register from certain slave device
Definition: hpm_sccb.c:37
@ sccb_xfer_no_stop
Definition: hpm_sccb.h:21
hpm_stat_t sccb_master_read_bytes(sccb_type sccb, uint8_t slv_addr, uint8_t *buf, const uint32_t len, uint8_t flags)
sccb master reads the specified number of bytes continuously at the specified flag
Definition: hpm_sccb.c:96
hpm_stat_t sccb_master_writew(sccb_type sccb, uint8_t slv_addr, uint8_t reg_addr, uint16_t reg_data)
sccb master write 16bit data of specify 8bit register from certain slave device
Definition: hpm_sccb.c:70
hpm_stat_t sccb_master_readb2(sccb_type sccb, uint8_t slv_addr, uint16_t reg_addr, uint8_t *reg_data)
sccb master read 8bit data of specify 16bit register from certain slave device
Definition: hpm_sccb.c:42
I2C_Type * sccb_type
Definition: hpm_sccb.h:15
Definition: hpm_i2c_regs.h:12