streaming to dac dynamically generated signal Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

streaming to dac dynamically generated signal  Topic is solved

Postby alex31 » Sun Feb 05, 2017 11:34 am

Hello,

DAC demos do send samples from flash memory.
On the contrary, I want the buffer in ram to generate signal in the end_cb callback, regenerating halfbuffer during the streaming of
the precedent one (just normal half-buffer operation).

unfortunately, the signature of the callback is :

Code: Select all

void end_cb1(DACDriver *dacp, [b]const[/b] dacsample_t *buffer, size_t n)


the constiness of dacsample_t *buffer prevent to modify buffer, making the DAC driver pretty unusable if buffer is in ram and need to be generated.

what is the rationale of the constiness of the buffer here ?

Thanks
Alexandre

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: streaming to dac dynamically generated signal

Postby Giovanni » Sun Feb 05, 2017 12:00 pm

Hi,

It is an error, probably the signature was copied from the ADC driver and forgot to change it, moving this torpic in "bug reports".

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: streaming to dac dynamically generated signal

Postby Giovanni » Mon Feb 06, 2017 11:36 am

Hi,

Fixed as bug #817.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 6 guests