18#ifndef __HAL_DRIVER_${SERIES/I2C_IP}_I2C_H__
19#define __HAL_DRIVER_${SERIES/I2C_IP}_I2C_H__
25#if VSF_HAL_USE_I2C == ENABLED
27#include "../../__device.h"
39#if defined(__VSF_HAL_${I2C_IP}_I2C_CLASS_IMPLEMENT)
40# define __VSF_CLASS_IMPLEMENT__
41#elif defined(__VSF_HAL_${I2C_IP}_I2C_CLASS_INHERIT__)
42# define __VSF_CLASS_INHERIT__
59#ifndef VSF_${I2C_IP}_I2C_CFG_MULTI_CLASS
60# define VSF_${I2C_IP}_I2C_CFG_MULTI_CLASS VSF_I2C_CFG_MULTI_CLASS
75#define VSF_I2C_CFG_REIMPLEMENT_TYPE_MODE ENABLED
76#define VSF_I2C_CFG_REIMPLEMENT_TYPE_CMD ENABLED
77#define VSF_I2C_CFG_REIMPLEMENT_TYPE_STATUS ENABLED
78#define VSF_I2C_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
85#if VSF_${I2C_IP}_CFG_MULTI_CLASS == ENABLED
178#undef __VSF_HAL_${I2C_IP}_I2C_CLASS_IMPLEMENT
179#undef __VSF_HAL_${I2C_IP}_I2C_CLASS_INHERIT__
vsf_i2c_cmd_t
Definition i2c.h:32
@ VSF_I2C_CMD_10_BITS
Definition i2c.h:40
@ VSF_I2C_CMD_7_BITS
Definition i2c.h:39
@ VSF_I2C_CMD_NO_START
Definition i2c.h:47
@ VSF_I2C_CMD_STOP
Definition i2c.h:48
@ VSF_I2C_CMD_NO_STOP_RESTART
Definition i2c.h:49
@ VSF_I2C_CMD_RESTART
Definition i2c.h:37
@ VSF_I2C_CMD_WRITE
Definition i2c.h:33
@ VSF_I2C_CMD_READ
Definition i2c.h:34
@ VSF_I2C_CMD_START
Definition i2c.h:36
vsf_i2c_mode_t
Definition i2c.h:104
@ VSF_I2C_MODE_MASTER
Definition i2c.h:105
@ VSF_I2C_SPEED_HIGH_SPEED_MODE
Definition i2c.h:111
@ VSF_I2C_MODE_SLAVE
Definition i2c.h:106
@ VSF_I2C_SPEED_STANDARD_MODE
Definition i2c.h:108
@ VSF_I2C_ADDR_7_BITS
Definition i2c.h:113
@ VSF_I2C_SPEED_FAST_MODE_PLUS
Definition i2c.h:110
@ VSF_I2C_SPEED_FAST_MODE
Definition i2c.h:109
@ VSF_I2C_ADDR_10_BITS
Definition i2c.h:114
vsf_i2c_isr_t isr
Definition i2c.h:99
vsf_i2c_irq_mask_t
Definition i2c.h:136
@ VSF_I2C_IRQ_MASK_MASTER_STOP_DETECT
Definition i2c.h:139
@ VSF_I2C_IRQ_MASK_MASTER_ERROR
Definition i2c.h:143
@ VSF_I2C_IRQ_MASK_MASTER_TRANSFER_COMPLETE
Definition i2c.h:145
@ VSF_I2C_IRQ_MASK_MASTER_TX_EMPTY
Definition i2c.h:142
@ VSF_I2C_IRQ_MASK_MASTER_NACK_DETECT
Definition i2c.h:140
@ VSF_I2C_IRQ_MASK_MASTER_STOPPED
Definition i2c.h:138
@ VSF_I2C_IRQ_MASK_MASTER_ADDRESS_NACK
Definition i2c.h:146
@ VSF_I2C_IRQ_MASK_MASTER_ARBITRATION_LOST
Definition i2c.h:141
@ VSF_I2C_IRQ_MASK_MASTER_STARTED
Definition i2c.h:137
unsigned int uint32_t
Definition lvgl.h:43
#define vsf_class(__name)
Definition ooc_class.h:48
i2c interrupt configuration
Definition vsf_template_i2c.h:298
Definition vsf_template_i2c.h:222
Definition vsf_template_i2c.h:334
Definition vsf_template_hal_driver.h:196
vk_av_control_value_t value
Definition vsf_audio.h:171
vsf_i2c_mode_t
Definition vsf_template_i2c.h:116
vsf_i2c_irq_mask_t
Definition vsf_template_i2c.h:194