|
static void | delay_time (int32_t time) |
|
static int32_t | iic_wait (iic_base_t base) |
| 阻塞查询数据接收/发送 更多...
|
|
static void | iic_reset (iic_base_t base) |
| 复位IIC总线 更多...
|
|
static void | iic_start (iic_base_t base) |
| IIC总线发送start位 更多...
|
|
static void | iic_stop (iic_base_t base) |
| iic总线发送stop位 更多...
|
|
static void | iic_address (iic_base_t base, uint16_t addr, uint16_t flags) |
| iic发送寻址 更多...
|
|
static void | iic_transfer_transmit (iic_base_t base, int32_t lastbyte, int32_t receive, int32_t midbyte) |
| 数据阻塞发送 更多...
|
|
static uint8_t | iic_transfer_receive (iic_base_t base, int32_t lastbyte, int32_t receive, int32_t midbyte) |
|
static int32_t | iic_sendbytes (iic_base_t base, const int8_t *buf, int32_t count, int32_t last, uint8_t *last_ack_flag) |
| iic阻塞发送数据 更多...
|
|
static uint32_t | iic_readbytes (iic_base_t base, int8_t *buf, int32_t count, int32_t last) |
| iic读取数据 更多...
|
|
void | iic_polling_init (iic_base_t base, uint32_t speed, uint32_t slaveaddr, IIC_TimeOut timeout) |
| iic以查询方式初始化 更多...
|
|
void | iic_interrupt_init (iic_base_t base, uint32_t speed, uint32_t slaveaddr, IIC_TimeOut timeout) |
| iic以中断方式初始化 更多...
|
|
int32_t | iic_master_polling_send (iic_base_t base, uint16_t addr, const char *buf, int32_t count, uint8_t *last_ack_flag) |
| iic master 查询方式发送数据 更多...
|
|
int32_t | iic_master_interrupt_send (iic_base_t base, uint16_t addr, master_send_cb_t master_send_cb) |
| iic master 模式中断发送注册并启动 更多...
|
|
int32_t | iic_master_polling_recv (iic_base_t base, uint16_t addr, char *buf, int32_t count) |
| iic master 查询接收 更多...
|
|
int32_t | iic_master_interrupt_recv (iic_base_t base, uint16_t addr, master_recv_cb_t master_recv_cb) |
| iic master 中断方式接收注册并启动 更多...
|
|
int32_t | iic_slave_polling_send (iic_base_t base, const char *buf, int32_t count, uint8_t *last_ack_flag) |
| iic slave 查询方式发送 更多...
|
|
int32_t | iic_slave_interrupt_send (iic_base_t base, slave_send_cb_t slave_send_cb) |
| iic slave 中断方式发送注册(被动启动) 更多...
|
|
int32_t | iic_slave_polling_recv (iic_base_t base, char *buf, int32_t count) |
| iic slave 模式查询方式接收 更多...
|
|
int32_t | iic_slave_interrupt_recv (iic_base_t base, slave_recv_cb_t slave_recv_cb) |
| iic slave 中断方式接收注册(被动启动) 更多...
|
|
int32_t | iic_master_multi_transmission (iic_base_t base, uint16_t addr, multi_transmission_msg *msg, int msg_count) |
| iic 传输多个消息 更多...
|
|
void | IIC_IRQHandler (iic_base_t base) |
| iic中断统一处理函数 更多...
|
|
void | IIC0_IRQHandler (void) |
|
int32_t | i2c_master_only_send (char slave_ic_address, const char *buf, int32_t count) |
| I2C 只发送数据 更多...
|
|
int32_t | i2c_master_send_recv (char slave_ic_address, char *buf, int32_t send_len, int32_t rev_len) |
| I2C 先发送数据,再接收数据 更多...
|
|
int32_t | i2c_master_only_recv (char slave_ic_address, char *buf, int32_t rev_len) |
| I2C 只接收数据 更多...
|
|