Client for FSK-4 communication. The public interface is the same as Arduino Serial.
More...
#include <FSK4.h>
Client for FSK-4 communication. The public interface is the same as Arduino Serial.
◆ FSK4Client() [1/2]
Constructor for FSK-4 mode.
- Parameters
-
phy | Pointer to the wireless module providing PhysicalLayer communication. |
◆ FSK4Client() [2/2]
Constructor for AFSK mode.
- Parameters
-
audio | Pointer to the AFSK instance providing audio. |
◆ begin()
int16_t FSK4Client::begin |
( |
float |
base, |
|
|
uint32_t |
shift, |
|
|
uint16_t |
rate |
|
) |
| |
Initialization method.
- Parameters
-
base | Base (space) frequency to be used in MHz (in FSK-4 mode), or the space tone frequency in Hz (in AFSK mode) |
shift | Frequency shift between each tone in Hz. |
rate | Baud rate to be used during transmission. |
- Returns
- Status Codes
◆ setCorrection()
int16_t FSK4Client::setCorrection |
( |
int16_t |
offsets[4], |
|
|
float |
length = 1.0f |
|
) |
| |
Set correction coefficients for frequencies and tone length.
- Parameters
-
offsets | Four positive or negative correction offsets for audio frequencies in Hz. |
length | Tone length modifier, defaults to 1.0. |
- Returns
- Status Codes
◆ standby()
int16_t FSK4Client::standby |
( |
| ) |
|
◆ write() [1/2]
size_t FSK4Client::write |
( |
uint8_t * |
buff, |
|
|
size_t |
len |
|
) |
| |
Transmit binary data.
- Parameters
-
buff | Buffer to transmit. |
len | Number of bytes to transmit. |
- Returns
- Number of transmitted bytes.
◆ write() [2/2]
size_t FSK4Client::write |
( |
uint8_t |
b | ) |
|
Transmit a single byte.
- Parameters
-
- Returns
- Number of transmitted bytes.
The documentation for this class was generated from the following files:
- src/protocols/FSK4/FSK4.h
- src/protocols/FSK4/FSK4.cpp