![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
chip级定义 更多...
#include <stdint.h>
结构体 | |
struct | SCU_TypeDef |
struct | DPMU_TypeDef |
DPMU寄存器结构体 更多... | |
struct | UART_TypeDef |
struct | DMACChanx_TypeDef |
struct | DMA_TypeDef |
struct | DMAC_LLI |
struct | IISDMAChanx_TypeDef |
struct | IISDMA_TypeDef |
struct | CODEC_ALC_TypeDef |
struct | CODEC_TypeDef |
struct | PDM_TypeDef |
struct | ALC_TypeDef |
宏定义 | |
#define | INT32_T_MAX (0x7fffffff) |
#define | INT32_T_MIN (0x80000000) |
#define | IRQn_MAX_NUMBER (51) |
#define | IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) |
#define | NULL 0 |
#define | HAL_NPU_BASE (0xECC644) |
#define | IPCORE_BASE (0xa6a6a6a6) |
#define | APB_BASE (0x5a5a5a5a) |
#define | SYSTICK_BASE (0x77777777) |
#define | PLL_BASE (0x34343434) |
#define | HAL_DTRFLASH_RAM_BASE (0x45454545) |
#define | SCU_BASE_INDEX 0 |
#define | HAL_SCU_BASE (0x40000000) |
#define | HAL_GDMA_BASE (0x40001000) |
#define | HAL_ADC_BASE (0x40002000) |
#define | HAL_IISDMA0_BASE (0x40003000) |
#define | HAL_DTRFLASH_BASE (0x40004000) |
#define | HAL_ALC_BASE (0x40005000) |
#define | HAL_TWDG_BASE (0x40010000) |
#define | HAL_IIC0_BASE (0x40011000) |
#define | HAL_PDM_BASE (0x40012000) |
#define | HAL_ALC_PDM_BASE (0x40012200) |
#define | HAL_CODEC_BASE (0x40013000) |
#define | HAL_PWM0_BASE (0x40014000) |
#define | HAL_PWM1_BASE (0x40015000) |
#define | HAL_PWM2_BASE (0x40016000) |
#define | HAL_PWM3_BASE (0x40017000) |
#define | HAL_TIMER0_BASE (0x40018000) |
#define | HAL_TIMER1_BASE (0x40019000) |
#define | HAL_TIMER2_BASE (0x4001a000) |
#define | HAL_TIMER3_BASE (0x4001b000) |
#define | CODEC_AD_GATE (0x4001c000) |
#define | CODEC_DA_GATE (0x4001d000) |
#define | WWDG_CPU0_HALT_GATE (0x4001e000) |
#define | WWDG_CPU1_HALT_GATE (0x4001f000) |
#define | HAL_PA_BASE (0x40020000) |
#define | HAL_PB_BASE (0x40021000) |
#define | HAL_UART0_BASE (0x40022000) |
#define | HAL_UART1_BASE (0x40023000) |
#define | HAL_UART2_BASE (0x40024000) |
#define | HAL_IIS0_BASE (0x40025000) |
#define | HAL_IIS1_BASE (0x40026000) |
#define | HAL_IIS2_BASE (0x40027000) |
#define | HAL_PD_BASE (0x40028000) |
#define | IIS1_RX_GATE (0x40029000) |
#define | IIS1_TX_GATE (0x4002A000) |
#define | HAL_DPMU_BASE (0x40030000) |
#define | HAL_PC_BASE (0x40031000) |
#define | HAL_IWDG_BASE (0x40032000) |
#define | HAL_EFUSE_BASE (0x40033000) |
#define | HAL_PWM4_BASE (0x40034000) |
#define | HAL_PWM5_BASE (0x40035000) |
#define | IWDG_CPU0_HALT_GATE (0x40036000) |
#define | IWDG_CPU1_HALT_GATE (0x40037000) |
#define | PLL_OUT_GATE (0x40038000) |
#define | HAL_MAILBOX0_BASE (0x40006000) |
#define | HAL_MAILBOX1_BASE (0x30010000) |
#define | SPI0FIFO_BASE (0x60000000) |
#define | UART0FIFO_BASE (0x61000000) |
#define | UART1FIFO_BASE (0x62000000) |
#define | UART2FIFO_BASE (0x63000000) |
#define | SCU ((SCU_TypeDef*)HAL_SCU_BASE) |
#define | DPMU ((DPMU_TypeDef*)HAL_DPMU_BASE) |
#define | ADC ((ADC_TypeDef*)HAL_ADC_BASE) |
#define | UART0 ((UART_TypeDef*)HAL_UART0_BASE) |
#define | UART1 ((UART_TypeDef*)HAL_UART1_BASE) |
#define | UART2 ((UART_TypeDef*)HAL_UART2_BASE) |
#define | TWDG ((TWDG_TypeDef *)HAL_TWDG_BASE) |
#define | PDM ((PDM_TypeDef*)HAL_PDM_BASE) |
#define | CODEC ((CODEC_TypeDef*)HAL_CODEC_BASE) |
#define | ALC ((ALC_TypeDef*)HAL_ALC_BASE) |
#define | ALC_PDM ((ALC_TypeDef*)HAL_ALC_PDM_BASE) |
#define | DMAC ((DMA_TypeDef*)HAL_GDMA_BASE) |
#define | IISDMA0 ((IISDMA_TypeDef*)HAL_IISDMA0_BASE) |
类型定义 | |
typedef enum IRQn | IRQn_Type |
typedef enum FlagStatus | ITStatus |
枚举 | |
enum | _retval { RETURN_OK = 0, RET_SUCCESS = RETURN_OK, PARA_ERROR = -1, RET_INVALIDARGMENT = PARA_ERROR, RETURN_ERR = -2, RET_FAIL = RETURN_ERR, RET_MOMEM = -3, RET_READONLY = -4, RET_OUTOFRANGE = -5, RET_TIMEOUT = -6, RET_NOTRANSFEINPROGRESS = -7, RET_UNKNOW = (0x80000000) } |
enum | IRQn { MSIP_IRQn = 3, MTIP_IRQ = 7, TWDG_IRQn = 19 + 0, SCU_IRQn = 19 + 1, NPU_IRQn = 19 + 2, ADC_IRQn = 19 + 3, DMA_IRQn = 19 + 4, TIMER0_IRQn = 19 + 5, TIMER1_IRQn = 19 + 6, TIMER2_IRQn = 19 + 7, TIMER3_IRQn = 19 + 8, IIC0_IRQn = 19 + 9, PA_IRQn = 19 + 10, PB_IRQn = 19 + 11, UART0_IRQn = 19 + 12, UART1_IRQn = 19 + 13, UART2_IRQn = 19 + 14, IIS0_IRQn = 19 + 15, IIS1_IRQn = 19 + 16, IIS2_IRQn = 19 + 17, IIS_DMA_IRQn = 19 + 18, ALC_IRQn = 19 + 19, PDM_IRQn = 19 + 20, DTR_IRQn = 19 + 21, V11_OK_IRQn = 19 + 22, VDT_IRQn = 19 + 23, EXT0_IRQn = 19 + 24, EXT1_IRQn = 19 + 25, IWDG_IRQn = 19 + 26, AON_TIM_INT0_IRQn = 19 + 27, AON_TIM_INT1_IRQn = 19 + 28, AON_EFUSE_IRQn = 19 + 29, AON_PC_IRQn = 19 + 30, MAILBOX_IRQn = 19 + 31 } |
enum | FlagStatus { RESET = 0, SET = !RESET } |
enum | FunctionalState { DISABLE = 0, ENABLE = !DISABLE } |
enum | Ext_Num { EXT0 = 0, EXT1 = 1 } |
函数 | |
void | _delay_10us_240M (uint32_t cnt) |
chip级定义
struct SCU_TypeDef |
struct DPMU_TypeDef |
DPMU寄存器结构体
struct UART_TypeDef |
struct DMACChanx_TypeDef |
struct DMA_TypeDef |
成员变量 | ||
---|---|---|
DMACChanx_TypeDef | DMACChannel[8] | |
volatile unsigned int | DMACConfiguration | |
volatile unsigned int | DMACEnbldChns | |
volatile unsigned int | DMACIntErrClr | |
volatile unsigned int | DMACIntErrorStatus | |
volatile unsigned int | DMACIntStatus | |
volatile unsigned int | DMACIntTCClear | |
volatile unsigned int | DMACIntTCStatus | |
volatile unsigned int | DMACITCR | |
volatile unsigned int | DMACITOP[3] | |
volatile unsigned int | DMACPCellID[4] | |
volatile unsigned int | DMACPeriphID[4] | |
volatile unsigned int | DMACRawIntErrorStatus | |
volatile unsigned int | DMACRawIntTCStatus | |
volatile unsigned int | DMACSoftBReq | |
volatile unsigned int | DMACSoftLBReq | |
volatile unsigned int | DMACSoftLSReq | |
volatile unsigned int | DMACSoftSReq | |
volatile unsigned int | DMACSync | |
unsigned int | reserved1[50] | |
unsigned int | reserved2[195] | |
unsigned int | reserved3[693] |
struct DMAC_LLI |
struct IISDMAChanx_TypeDef |
struct IISDMA_TypeDef |
成员变量 | ||
---|---|---|
volatile unsigned int | DMA_REQ_CLR_STATE | |
volatile unsigned int | DMATADDR[3] | |
volatile unsigned int | IIS_END_NUM | |
volatile unsigned int | IIS_END_NUM_EN | |
volatile unsigned int | IISDMACLR | |
volatile unsigned int | IISDMACTRL | |
volatile unsigned int | IISDMAIISCLR | |
volatile unsigned int | IISDMAPTR | |
volatile unsigned int | IISDMARADDR[3] | |
volatile unsigned int | IISDMASTATE | |
IISDMAChanx_TypeDef | IISxDMA[3] | |
volatile unsigned int | RX_LAST_ADDR | |
volatile unsigned int | RX_VAD_CTRL |
struct CODEC_ALC_TypeDef |
struct CODEC_TypeDef |
成员变量 | ||
---|---|---|
volatile unsigned int | adc_dig_gain_reg[2] | |
CODEC_ALC_TypeDef | alc_reg[2] | |
volatile unsigned int | pga_gain_reg[2] | |
volatile unsigned int | reg0 | |
volatile unsigned int | reg2 | |
volatile unsigned int | reg21 | |
volatile unsigned int | reg22 | |
volatile unsigned int | reg23 | |
volatile unsigned int | reg24 | |
volatile unsigned int | reg25 | |
volatile unsigned int | reg26 | |
volatile unsigned int | reg29 | |
volatile unsigned int | reg2a | |
volatile unsigned int | reg2b | |
volatile unsigned int | reg2c | |
volatile unsigned int | reg2d | |
volatile unsigned int | reg2e | |
volatile unsigned int | reg2f | |
volatile unsigned int | reg3 | |
volatile unsigned int | reg30 | |
volatile unsigned int | reg4 | |
volatile unsigned int | reg5 | |
volatile unsigned int | reg6 | |
volatile unsigned int | reg7 | |
volatile unsigned int | rega | |
unsigned int | resver1 | |
unsigned int | resver4[22] | |
unsigned int | resver6[15] |
struct PDM_TypeDef |
成员变量 | ||
---|---|---|
CODEC_ALC_TypeDef | alc_reg[2] | |
volatile unsigned int | pdm_dig_gain[2] | |
volatile unsigned int | reg0 | |
volatile unsigned int | reg2 | |
volatile unsigned int | reg21 | |
volatile unsigned int | reg22 | |
volatile unsigned int | reg23 | |
volatile unsigned int | reg24 | |
volatile unsigned int | reg25 | |
volatile unsigned int | reg26 | |
volatile unsigned int | reg27 | |
volatile unsigned int | reg28 | |
volatile unsigned int | reg29 | |
volatile unsigned int | reg2a | |
volatile unsigned int | reg2b | |
volatile unsigned int | reg2c | |
volatile unsigned int | reg2d | |
volatile unsigned int | reg2e | |
volatile unsigned int | reg2f | |
volatile unsigned int | reg3 | |
volatile unsigned int | reg30 | |
volatile unsigned int | reg4 | |
volatile unsigned int | reg5 | |
volatile unsigned int | reg7 | |
volatile unsigned int | rega | |
unsigned int | resver1 | |
unsigned int | resver2 | |
unsigned int | resver4[22] | |
unsigned int | resver6[15] |
struct ALC_TypeDef |
#define ADC ((ADC_TypeDef*)HAL_ADC_BASE) |
#define ALC ((ALC_TypeDef*)HAL_ALC_BASE) |
#define ALC_PDM ((ALC_TypeDef*)HAL_ALC_PDM_BASE) |
#define APB_BASE (0x5a5a5a5a) |
#define CODEC ((CODEC_TypeDef*)HAL_CODEC_BASE) |
#define CODEC_AD_GATE (0x4001c000) |
#define CODEC_DA_GATE (0x4001d000) |
#define DMAC ((DMA_TypeDef*)HAL_GDMA_BASE) |
#define DPMU ((DPMU_TypeDef*)HAL_DPMU_BASE) |
#define HAL_ADC_BASE (0x40002000) |
#define HAL_ALC_BASE (0x40005000) |
#define HAL_ALC_PDM_BASE (0x40012200) |
#define HAL_CODEC_BASE (0x40013000) |
#define HAL_DPMU_BASE (0x40030000) |
#define HAL_DTRFLASH_BASE (0x40004000) |
#define HAL_DTRFLASH_RAM_BASE (0x45454545) |
#define HAL_EFUSE_BASE (0x40033000) |
#define HAL_GDMA_BASE (0x40001000) |
#define HAL_IIC0_BASE (0x40011000) |
#define HAL_IIS0_BASE (0x40025000) |
#define HAL_IIS1_BASE (0x40026000) |
#define HAL_IIS2_BASE (0x40027000) |
#define HAL_IISDMA0_BASE (0x40003000) |
#define HAL_IWDG_BASE (0x40032000) |
#define HAL_MAILBOX0_BASE (0x40006000) |
#define HAL_MAILBOX1_BASE (0x30010000) |
#define HAL_NPU_BASE (0xECC644) |
#define HAL_PA_BASE (0x40020000) |
#define HAL_PB_BASE (0x40021000) |
#define HAL_PC_BASE (0x40031000) |
#define HAL_PD_BASE (0x40028000) |
#define HAL_PDM_BASE (0x40012000) |
#define HAL_PWM0_BASE (0x40014000) |
#define HAL_PWM1_BASE (0x40015000) |
#define HAL_PWM2_BASE (0x40016000) |
#define HAL_PWM3_BASE (0x40017000) |
#define HAL_PWM4_BASE (0x40034000) |
#define HAL_PWM5_BASE (0x40035000) |
#define HAL_SCU_BASE (0x40000000) |
#define HAL_TIMER0_BASE (0x40018000) |
#define HAL_TIMER1_BASE (0x40019000) |
#define HAL_TIMER2_BASE (0x4001a000) |
#define HAL_TIMER3_BASE (0x4001b000) |
#define HAL_TWDG_BASE (0x40010000) |
#define HAL_UART0_BASE (0x40022000) |
#define HAL_UART1_BASE (0x40023000) |
#define HAL_UART2_BASE (0x40024000) |
#define IIS1_RX_GATE (0x40029000) |
#define IIS1_TX_GATE (0x4002A000) |
#define IISDMA0 ((IISDMA_TypeDef*)HAL_IISDMA0_BASE) |
#define INT32_T_MAX (0x7fffffff) |
#define INT32_T_MIN (0x80000000) |
#define IPCORE_BASE (0xa6a6a6a6) |
#define IRQn_MAX_NUMBER (51) |
#define IWDG_CPU0_HALT_GATE (0x40036000) |
#define IWDG_CPU1_HALT_GATE (0x40037000) |
#define NULL 0 |
#define PDM ((PDM_TypeDef*)HAL_PDM_BASE) |
#define PLL_BASE (0x34343434) |
#define PLL_OUT_GATE (0x40038000) |
#define SCU ((SCU_TypeDef*)HAL_SCU_BASE) |
#define SCU_BASE_INDEX 0 |
#define SPI0FIFO_BASE (0x60000000) |
#define SYSTICK_BASE (0x77777777) |
#define TWDG ((TWDG_TypeDef *)HAL_TWDG_BASE) |
#define UART0 ((UART_TypeDef*)HAL_UART0_BASE) |
#define UART0FIFO_BASE (0x61000000) |
#define UART1 ((UART_TypeDef*)HAL_UART1_BASE) |
#define UART1FIFO_BASE (0x62000000) |
#define UART2 ((UART_TypeDef*)HAL_UART2_BASE) |
#define UART2FIFO_BASE (0x63000000) |
#define WWDG_CPU0_HALT_GATE (0x4001e000) |
#define WWDG_CPU1_HALT_GATE (0x4001f000) |
typedef enum FlagStatus ITStatus |
void _delay_10us_240M | ( | uint32_t | cnt | ) |