|
|
@ -3915,10 +3915,21 @@ look ahead delay, as well.</p> |
|
|
|
that set filters.</p> |
|
|
|
that set filters.</p> |
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>bufferHasSpace</span>();</p> |
|
|
|
<p class=func><span class=keyword>bufferHasSpace</span>();</p> |
|
|
|
<p class=desc>Returns a bool value true if another data word can be sent. </p> |
|
|
|
<p class=desc>Returns a <strong>bool</strong> value true if one or |
|
|
|
|
|
|
|
more data words can be sent |
|
|
|
|
|
|
|
without filling the 64 word FIFO transmit buffer. </p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>getBufferSpace</span>();</p> |
|
|
|
|
|
|
|
<p class=desc>Returns an <strong>in16_t</strong> with the |
|
|
|
|
|
|
|
number of data words can be sent |
|
|
|
|
|
|
|
without filling the 64 word FIFO transmit buffer. </p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>sendData</span>(<strong>uint32_t</strong> data);</p> |
|
|
|
<p class=func><span class=keyword>sendData</span>(<strong>uint32_t</strong> data);</p> |
|
|
|
<p class=desc>Empties the FIFO transmit buffer.</p> |
|
|
|
<p class=desc>Places a data word into the FIFO transmit buffer. |
|
|
|
|
|
|
|
The data word can be any length up to 32 bits. The buffer length is 64 words. |
|
|
|
|
|
|
|
If the word was queued for sending, a <strong>bool</strong> true is returned. |
|
|
|
|
|
|
|
If no space was available, a <strong>bool</strong> false is returned.</p> |
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>clearBuffer</span>();</p> |
|
|
|
<p class=func><span class=keyword>clearBuffer</span>();</p> |
|
|
|
<p class=desc>Clears the send buffer. Does not stop a character being sent. No return value.</p> |
|
|
|
<p class=desc>Clears the send buffer. Does not stop a character being sent. No return value.</p> |
|
|
@ -3929,17 +3940,18 @@ look ahead delay, as well.</p> |
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>setLPF |
|
|
|
<p class=func><span class=keyword>setLPF |
|
|
|
</span>(<strong>float32_t*</strong> FIRdata, <strong>float32_t*</strong> FIRcoeff, <strong>uint16_t</strong> numCoeffs);</p> |
|
|
|
</span>(<strong>float32_t*</strong> FIRdata, <strong>float32_t*</strong> FIRcoeff, <strong>uint16_t</strong> numCoeffs);</p> |
|
|
|
<p>This sets output filtering where: |
|
|
|
<p class=desc>This sets output filtering where: |
|
|
|
<pre class="desc"> |
|
|
|
<pre class="desc"> |
|
|
|
float32_t* FIRdata is a pointer to array data storage |
|
|
|
float32_t* FIRdata is a pointer to array data storage |
|
|
|
float32_t* firCoeffs is a pointer to array of coefficients |
|
|
|
float32_t* firCoeffs is a pointer to array of coefficients |
|
|
|
uint numCoeffs is the number of FIR filter coefficients |
|
|
|
uint numCoeffs is the number of FIR filter coefficients |
|
|
|
</pre> |
|
|
|
</pre></p> |
|
|
|
To omit the FIR filter, enter the pointer to the coefficients as NULL. |
|
|
|
<p class=desc>To omit the FIR filter, enter the pointer to the coefficients as NULL.</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class=func><span class=keyword>setSampleRate_Hz</span>(<strong>float32_t</strong> sampleRate_Hz)</p> |
|
|
|
<p class=func><span class=keyword>setSampleRate_Hz</span>(<strong>float32_t</strong> sampleRate_Hz)</p> |
|
|
|
<p class=desc>Enter sample rate, as float32_t. |
|
|
|
<p class=desc>Enter sample rate, as <strong>float32_t</strong>. |
|
|
|
It applies to this class only. |
|
|
|
This applies to this class only, i.e., this does not change sample rates globally.</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
<h3>Examples</h3> |
|
|
|
<h3>Examples</h3> |
|
|
|
<p class=exam>File > Examples > OpenAudio_ArduinoLibrary > BFSK |
|
|
|
<p class=exam>File > Examples > OpenAudio_ArduinoLibrary > BFSK |
|
|
|
</p> |
|
|
|
</p> |
|
|
@ -3947,12 +3959,13 @@ look ahead delay, as well.</p> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p class=exam>File > Examples > OpenAudio_ArduinoLibrary > BFSK_snr |
|
|
|
<p class=exam>File > Examples > OpenAudio_ArduinoLibrary > BFSK_snr |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<h3>Notes</h3> |
|
|
|
<h3>Notes</h3> |
|
|
|
<p>This modulator includes a lowpass filter on the input bit data. |
|
|
|
<p>This modulator includes a lowpass filter on the input bit data. |
|
|
|
This can be very effective in restricting the bandwidth of the BFSK output. |
|
|
|
This can be very effective in restricting the bandwidth of the BFSK output. |
|
|
|
This filter can be None (default) or an arbitrary FIR filter. |
|
|
|
This filter can be None (default) or an arbitrary FIR filter. |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p>Parity is not yet implemented.</p> |
|
|
|
<p>Parity is not implemented.</p> |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<script type="text/x-red" data-template-name="RadioBFSKModulator_F32"> |
|
|
|
<script type="text/x-red" data-template-name="RadioBFSKModulator_F32"> |
|
|
|
<div class="form-row"> |
|
|
|
<div class="form-row"> |
|
|
|