Question about c5000_spi0_writeall

14 views
Skip to first unread message

jack...@mailo.com

unread,
Dec 5, 2023, 7:47:10 PM12/5/23
to md380...@googlegroups.com


Hello,


the function c5000_spi0_writereg allows you to write to the registers of the C5000 but the problem is that you can only give the register number and the data to be written (1 integer).But I'd like to create a custom voice LC frame. The c5000 documentation shows how to:


Voice LC Header:

CPU 0x50 set to send the type 0x10, write 72bit LC data, write to send enable, the chip done CRC, BPTC, interleaved and framed in the next time slot to send, chip open voice coding, you can control the CPU to open voice coding. Receiving, on the other hand, gives the DataType, CC, PI, and 72bit LC data (or CRC check error) in the receive interrupt error).

But with c5000_spi0_writereg in can do :

c5000_spi0_writereg (0x50,0x10) but how can i add the 72bit LC data ? The function doesn’t accept more data.

The system_hrc5000.c gives some examples :

/* -- Reset FM registers to default --------------------------------*/

state=OS_ENTER_CRITICAL();

c5000_spi0_writereg(FM_SET_REGISTER, FM_DEFAULT);

c5000_spi0_readreg(FM_SET_REGISTER, hrc5000_reg);

OS_EXIT_CRITICAL(state);

but nothing to add more data with the function. How can i add data to the function ?




Reply all
Reply to author
Forward
0 new messages