CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
结构体 | 类型定义 | 枚举 | 函数
ci130x_iisdma.h 文件参考

二代芯片IISDMA底层驱动接口的头文件 更多...

#include "ci130x_system.h"

浏览源代码.

结构体

struct  iisdma_config_t
 IISDMA配置结构体 更多...
 
struct  iis_data_t
 

类型定义

typedef struct iisdma_config_tiisdma_config_p
 

枚举

enum  IISDMA_TXRX_ENx {
  IISxDMA_TX_EN =1,
  IISxDMA_RX_EN =0
}
 IISDMA TX或者RX选择 更多...
 
enum  IISDMA_Priorityx {
  IISDMA_Priority0 =0,
  IISDMA_Priority1,
  IISDMA_Priority2,
  IISDMA_Priority3,
  IISDMA_Priority4,
  IISDMA_Priority5,
  IISDMA_Priority6
}
 IISDMA中不同通道的优先级设置 更多...
 
enum  IISDMAChax {
  IISDMACha0 =0,
  IISDMACha1 =1,
  IISDMACha2 =2
}
 每个IISDMA对应的通道 更多...
 
enum  IISDMA_TXRXSingleSIZEx {
  IISDMA_TXRXSINGLESIZE16bytes =1,
  IISDMA_TXRXSINGLESIZE32bytes =2,
  IISDMA_TXRXSINGLESIZE48bytes =3,
  IISDMA_TXRXSINGLESIZE64bytes =4,
  IISDMA_TXRXSINGLESIZE80bytes =5,
  IISDMA_TXRXSINGLESIZE96bytes =6,
  IISDMA_TXRXSINGLESIZE128bytes =8,
  IISDMA_TXRXSINGLESIZE496bytes =31
}
 IISDMA单次搬运的数据大小,16*x个byte,x为1~31 更多...
 
enum  IISDMA_RXTXxRollbackADDR {
  IISDMA_RXTX1RollbackADDR =0,
  IISDMA_RXTX2RollbackADDR =1,
  IISDMA_RXTX3RollbackADDR =2,
  IISDMA_RXTX16RollbackADDR =15,
  IISDMA_RXTX32RollbackADDR =31,
  IISDMA_RXTX40RollbackADDR =39,
  IISDMA_RXTX64RollbackADDR =63,
  IISDMA_RXTX512RollbackADDR =511,
  IISDMA_RXTX1024RollbackADDR =1023
}
 IISDMA搬运了多少次(x+1次,x为0~1023)之后,若开启地址绕回中断,将产生地址绕回中断 更多...
 
enum  IISDMA_RXxInterrupt {
  IISDMA_RX1Interrupt =0,
  IISDMA_RX2Interrupt =1,
  IISDMA_RX3Interrupt =2,
  IISDMA_RX8Interrupt =7,
  IISDMA_RX16Interrupt =15,
  IISDMA_RX20Interrupt =19,
  IISDMA_RX32Interrupt =31
}
 IISDMA传输多少次(x+1次,x为0~31)之后,若开启传输完成中断,来传输完成中断 更多...
 
enum  IISDMA_TXADDR_Sel {
  IISDMA_TXAAD_Sel_ADDR0 =0,
  IISDMA_TXAAD_Sel_ADDR1 =1
}
 TADDR0或者TADDR1选择 更多...
 

函数

void IISDMA_ChannelENConfig (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXRX_ENx iisdma_txrx_sel, FunctionalState cmd)
 IISDMA某个通道的发送或者接收使能 更多...
 
void IISDMA_ADDRRollBackINT (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXRX_ENx iisdma_txrx_sel, FunctionalState cmd)
 IISDMA发送/接收传输完成,需要进行地址切换的中断使能 更多...
 
void IISDMA_ChannelIntENConfig (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXRX_ENx iisdma_txrx_sel, FunctionalState cmd)
 IISDMA发送/接收通道数据传输完成一次中断使能 更多...
 
void IISDMA_EN (IISDMA_TypeDef *IISDMAx, FunctionalState cmd)
 IISDMA使能控制 更多...
 
void IISxDMA_RADDR (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, unsigned int rxaddr)
 IISDMA接收地址配置 更多...
 
void IISxDMA_RNUM (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_RXxInterrupt iisrxtointerrupt, IISDMA_RXTXxRollbackADDR rollbacktimes, IISDMA_TXRXSingleSIZEx rxsinglesize)
 IISDMA接收数据长度配置 更多...
 
void IISxDMA_TADDR0 (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, unsigned int txaddr0)
 IISDMA TADDR0 发送地址寄存器配置 更多...
 
void IISxDMA_TNUM0 (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_RXTXxRollbackADDR rollbackaddr, IISDMA_TXRXSingleSIZEx txsinglesize)
 配置发送通道传输多少次后产生地址切换中断,及每次发送的数据大小 更多...
 
void IISxDMA_TADDR1 (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, unsigned int txaddr1)
 IISDMA TADDR1 发送地址寄存器配置 更多...
 
void IISxDMA_TNUM1 (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_RXTXxRollbackADDR rollbackaddr, IISDMA_TXRXSingleSIZEx txsinglesize)
 配置发送通道传输多少次后产生地址切换中断,及每次发送的数据大小 更多...
 
void IISDMA_PriorityConfig (IISDMA_TypeDef *IISDMAx, IISDMA_Priorityx iisdma_priority)
 IISDMA优先级设置 更多...
 
void IISDMA_INT_All_Clear (IISDMA_TypeDef *IISDMAx)
 IISDMA所有中断状态清除 更多...
 
void IISDMA_INT_Clear (IISDMA_TypeDef *IISDMAx, unsigned int tmp)
 IISDMA单独清除某个通道的中断 更多...
 
int IISDMA_ADDRRollBackSTATE (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXRX_ENx iisdma_txrx_sel)
 IISDMA发送/接收传输通道完成一次地址切换的状态 更多...
 
int CHECK_IISDMA_DATABUSBUSY (IISDMA_TypeDef *IISDMAx)
 IISDMA数据总线busy状态 更多...
 
void IISDMA_RXCompleteClear (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx)
 清除IISDMA接收通道完成传输的计数 更多...
 
void IISxDMA_TXADDRRollbackInterruptClear (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXADDR_Sel txrestart_addr)
 清除IISDMA发送内部的传输次数,并选择下一次传输开始的地址为TADDR0或者TADDR1 更多...
 
void IISDMA_RXTXClear (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx, IISDMA_TXRX_ENx iisdmarxtx)
 清除IISDMA接收/发送的传输次数,清除之后,发送和接收的地址为当前配置的地址 更多...
 
unsigned int IISxDMA_RXADDR (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx)
 返回IISDMA接收通道上次传输BM端最后一个数据的地址信息 更多...
 
int IISDMA_TX_ADDR_Get (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx)
 返回当前TX正在传输的地址为TADDR0还是TADDR1 更多...
 
uint32_t Get_IISxDMA_RADDR (IISDMA_TypeDef *IISDMAx, IISDMAChax iisx)
 返回当前IISDMA数据接收,存储的首地址 更多...
 
void iisdma_config (iisdma_config_p config)
 IISDMA配置 更多...
 

详细描述

二代芯片IISDMA底层驱动接口的头文件

版本
0.1
日期
2019-05-10

结构体说明

◆ iis_data_t

struct iis_data_t
成员变量
uint32_t addr
IISDMAChax cha