FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/sid_cw_params.c @ 579:1dc5d9320e96
libgsmhr1: implement RxFE block
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Feb 2025 09:10:12 +0000 |
parents | 993cb9273f89 |
children |
line wrap: on
line source
/* * The function in this module fills parameters 4 through 17 of * generated SID frames, setting them to the required SID codeword. * It can also be used to transform a speech frame into a SID frame * with the same R0 and LPC parameters. */ #include <stdint.h> #include "tw_gsmhr.h" void gsmhr_set_sid_cw_params(int16_t *params) { /* Int_LPC and Mode */ params[4] = 1; params[5] = 3; /* subframe 1 */ params[6] = 0xFF; params[7] = 0x1FF; params[8] = 0x1F; /* subframe 2 */ params[9] = 0xF; params[10] = 0x1FF; params[11] = 0x1F; /* subframe 3 */ params[12] = 0xF; params[13] = 0x1FF; params[14] = 0x1F; /* subframe 4 */ params[15] = 0xF; params[16] = 0x1FF; params[17] = 0x1F; }