![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
#include <stdint.h>#include <stdlib.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "freertos/semphr.h"#include "ci130x_iic.h"#include "ci130x_system.h"#include "platform_config.h"#include "string.h"#include "ci_log.h"#include "sdk_default_config.h"宏定义 | |
| #define | ES7243_I2C_ADDR (0x13) /*SLAVE设备IIC总线地址*/ |
| #define | ES7243_REG00 (0x00) |
| #define | ES7243_REG01 (0x01) |
| #define | ES7243_REG02 (0x02) |
| #define | ES7243_REG03 (0x03) |
| #define | ES7243_REG04 (0x04) |
| #define | ES7243_REG05 (0x05) |
| #define | ES7243_REG06 (0x06) |
| #define | ES7243_REG07 (0x07) |
| #define | ES7243_REG08 (0x08) |
| #define | ES7243_REG09 (0x09) |
| #define | ES7243_REG10 (0x0A) |
| #define | ES7243_REG11 (0x0B) |
| #define | ES7243_REG12 (0x0C) |
| #define | ES7243_REG13 (0x0D) |
| #define | ES7243_REG14 (0x0E) |
| #define | PAG_GAIN_1DB (0x10) |
| 设置7243 复位 更多... | |
| #define | PAG_GAIN_3_5DB (0x12) |
| #define | PAG_GAIN_18DB (0x20) |
| #define | PAG_GAIN_20_5DB (0x22) |
| #define | PAG_GAIN_22_5DB (0x04) |
| #define | PAG_GAIN_24_5DB (0x40) |
| #define | PAG_GAIN_25DB (0x06) |
| #define | PAG_GAIN_27DB (0x42) |
| #define | DIFFERENTIAL_INPUT (0x01) |
函数 | |
| static void | I2C_WriteEs7243Data (unsigned int regaddr, char val) |
| 为7243写入一个字节数据 更多... | |
| static int | I2C_ReadEs7243Data (unsigned int regaddr) |
| 读取7243某个寄存器的值 更多... | |
| void | es7243_pga_gain (uint8_t gain) |
| void | es7243_i2c_init (void) |
| void | es7243_test (void *p_arg) |
| void | es7243_aec_hw_init_back (void) |
| void | es7243_aec_hw_init (void) |
变量 | |
| static int | reg_data = 0 |
| #define DIFFERENTIAL_INPUT (0x01) |
| #define ES7243_I2C_ADDR (0x13) /*SLAVE设备IIC总线地址*/ |
| #define ES7243_REG00 (0x00) |
| #define ES7243_REG01 (0x01) |
| #define ES7243_REG02 (0x02) |
| #define ES7243_REG03 (0x03) |
| #define ES7243_REG04 (0x04) |
| #define ES7243_REG05 (0x05) |
| #define ES7243_REG06 (0x06) |
| #define ES7243_REG07 (0x07) |
| #define ES7243_REG08 (0x08) |
| #define ES7243_REG09 (0x09) |
| #define ES7243_REG10 (0x0A) |
| #define ES7243_REG11 (0x0B) |
| #define ES7243_REG12 (0x0C) |
| #define ES7243_REG13 (0x0D) |
| #define ES7243_REG14 (0x0E) |
| #define PAG_GAIN_18DB (0x20) |
| #define PAG_GAIN_1DB (0x10) |
设置7243 复位
| #define PAG_GAIN_20_5DB (0x22) |
| #define PAG_GAIN_22_5DB (0x04) |
| #define PAG_GAIN_24_5DB (0x40) |
| #define PAG_GAIN_25DB (0x06) |
| #define PAG_GAIN_27DB (0x42) |
| #define PAG_GAIN_3_5DB (0x12) |
| void es7243_aec_hw_init | ( | void | ) |
| void es7243_aec_hw_init_back | ( | void | ) |
| void es7243_i2c_init | ( | void | ) |
| void es7243_pga_gain | ( | uint8_t | gain | ) |
| void es7243_test | ( | void * | p_arg | ) |
|
static |
读取7243某个寄存器的值
| regaddr | 7243寄存器地址 |
|
static |
为7243写入一个字节数据
| regaddr | 7243寄存器地址 |
| val | 需要写入的值 |
|
static |
1.8.14