@@ -3915,10 +3915,21 @@ <h3>Functions</h3>
39153915 that set filters.</ p >
39163916
39173917 < p class = func > < span class = keyword > bufferHasSpace</ span > ();</ p >
3918- < p class = desc > Returns a bool value true if another data word can be sent. </ p >
3918+ < p class = desc > Returns a < strong > bool</ strong > value true if one or
3919+ more data words can be sent
3920+ without filling the 64 word FIFO transmit buffer. </ p >
3921+
3922+ < p class = func > < span class = keyword > getBufferSpace</ span > ();</ p >
3923+ < p class = desc > Returns an < strong > in16_t</ strong > with the
3924+ number of data words can be sent
3925+ without filling the 64 word FIFO transmit buffer. </ p >
3926+
39193927
39203928 < p class = func > < span class = keyword > sendData</ span > (< strong > uint32_t</ strong > data);</ p >
3921- < p class = desc > Empties the FIFO transmit buffer.</ p >
3929+ < p class = desc > Places a data word into the FIFO transmit buffer.
3930+ The data word can be any length up to 32 bits. The buffer length is 64 words.
3931+ If the word was queued for sending, a < strong > bool</ strong > true is returned.
3932+ If no space was available, a < strong > bool</ strong > false is returned.</ p >
39223933
39233934 < p class = func > < span class = keyword > clearBuffer</ span > ();</ p >
39243935 < p class = desc > Clears the send buffer. Does not stop a character being sent. No return value.</ p >
@@ -3929,30 +3940,32 @@ <h3>Functions</h3>
39293940
39303941 < p class = func > < span class = keyword > setLPF
39313942 </ span > (< strong > float32_t*</ strong > FIRdata, < strong > float32_t*</ strong > FIRcoeff, < strong > uint16_t</ strong > numCoeffs);</ p >
3932- < p > This sets output filtering where:
3943+ < p class = desc > This sets output filtering where:
39333944 < pre class = "desc" >
39343945 float32_t* FIRdata is a pointer to array data storage
39353946 float32_t* firCoeffs is a pointer to array of coefficients
39363947 uint numCoeffs is the number of FIR filter coefficients
3937- </ pre >
3938- To omit the FIR filter, enter the pointer to the coefficients as NULL.
3948+ </ pre > </ p >
3949+ < p class = desc > To omit the FIR filter, enter the pointer to the coefficients as NULL.</ p >
3950+
3951+
39393952 < p class = func > < span class = keyword > setSampleRate_Hz</ span > (< strong > float32_t</ strong > sampleRate_Hz)</ p >
3940- < p class = desc > Enter sample rate, as float32_t.
3941- It applies to this class only.
3942- </ p >
3953+ < p class = desc > Enter sample rate, as < strong > float32_t</ strong > .
3954+ This applies to this class only, i.e., this does not change sample rates globally.</ p >
39433955 < h3 > Examples</ h3 >
39443956 < p class = exam > File > Examples > OpenAudio_ArduinoLibrary > BFSK
39453957 </ p >
39463958 < p class = exam > File > Examples > OpenAudio_ArduinoLibrary > BFSK_random
39473959 </ p >
39483960 < p class = exam > File > Examples > OpenAudio_ArduinoLibrary > BFSK_snr
39493961 </ p >
3962+
39503963 < h3 > Notes</ h3 >
39513964 < p > This modulator includes a lowpass filter on the input bit data.
39523965 This can be very effective in restricting the bandwidth of the BFSK output.
39533966 This filter can be None (default) or an arbitrary FIR filter.
39543967 </ p >
3955- < p > Parity is not yet implemented.</ p >
3968+ < p > Parity is not implemented.</ p >
39563969</ script >
39573970< script type ="text/x-red " data-template-name ="RadioBFSKModulator_F32 ">
39583971 < div class = "form-row" >
0 commit comments