Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with function c5000_spi0_writereg #950

Open
jack8561 opened this issue Dec 5, 2023 · 0 comments
Open

Problem with function c5000_spi0_writereg #950

jack8561 opened this issue Dec 5, 2023 · 0 comments

Comments

@jack8561
Copy link

jack8561 commented Dec 5, 2023

Hello Travis,

the function c5000_spi0_writereg in the md380tools 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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant