![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
宏定义 | |
#define | USE_MASK_ROM_PCM_TABLE_DATA 1 |
函数 | |
uint8_t | ADPCM_Encode (int32_t sample) |
ADPCM_Encode. 更多... | |
int16_t | ADPCM_Decode (uint8_t code) |
ADPCM_Decode. 更多... | |
int32_t | ADPCM_Decode_clear (void) |
void | set_adpcm_decode_index (int16_t decode_index) |
void | set_adpcm_decode_predsample (int32_t decode_predsample) |
变量 | |
uint16_t const * | StepSizeTable = (uint16_t const*)(MASK_ROM_PCM_TABLE_ADDR) |
const int8_t | IndexTable [16] = {0xff, 0xff, 0xff, 0xff, 2, 4, 6, 8, 0xff, 0xff, 0xff, 0xff, 2, 4, 6, 8} |
static int16_t | Encodeindex = 0 |
static int32_t | Encodepredsample = 0 |
static int16_t | Decodeindex = 0 |
static int32_t | Decodepredsample = 0 |
#define USE_MASK_ROM_PCM_TABLE_DATA 1 |
int16_t ADPCM_Decode | ( | uint8_t | code | ) |
ADPCM_Decode.
code | a byte containing a 4-bit ADPCM sample. |
16-bit ADPCM sample |
int32_t ADPCM_Decode_clear | ( | void | ) |
uint8_t ADPCM_Encode | ( | int32_t | sample | ) |
ADPCM_Encode.
sample | a 16-bit PCM sample |
a 4-bit ADPCM sample |
void set_adpcm_decode_index | ( | int16_t | decode_index | ) |
void set_adpcm_decode_predsample | ( | int32_t | decode_predsample | ) |
|
static |
|
static |
|
static |
|
static |
const int8_t IndexTable[16] = {0xff, 0xff, 0xff, 0xff, 2, 4, 6, 8, 0xff, 0xff, 0xff, 0xff, 2, 4, 6, 8} |
uint16_t const* StepSizeTable = (uint16_t const*)(MASK_ROM_PCM_TABLE_ADDR) |