-
SendBitBlock
- Sends a block of bits to the channel and returns immediately. Modulation timer starts and is busy until all data bits is sent. UHF transmitter starts transfer from first "1" bit from data, so user data should begin with "1" bit.
ANSIC prototype: byte SendBitBlock(void* Ptr, word NumBits)
- Ptr:void* - Pointer to the block of data to send.
- NumBits:word - Size of the block (bits).
- Return value:byte - Error code, possible error codes:
ERR_OK - data transfer request sent to timer,
ERR_BUSY - transfer is now in progress.
-
SetBand
- Put value to Band pin if Band control is enabled else this method is disabled.
ANSIC prototype: byte SetBand(byte Band)
- Band:byte - Transmitter band. Output frequency depends on crystal oscillator frquency and PLL divider ratio. fout = fxtal * PLLdiv. When Band pin level is low, PLLdiv is 64, when high, PLLdiv is 32. This values are useful for setting fout to 315, 434 and 868 MHz. See table below.
- Return value:byte - Error code
-
SetMode
- Put value to Mode pin if Mode control is enabled else this method is disabled. If a low-logic level is applied on pin Mode, then the on/off keying (OOK) modulation is selected. This modulation is performed by switching on/off the RF output stage. If a high-logic level is applied on pin Mode, then frequency shift keying (FSK) modulation is selected. This modulation is achieved by modulating the frequency of the reference oscillator. This frequency change is performed by switching the external crystal load capacitor. In real application is Mode pin mostly hardwired.
ANSIC prototype: byte SetMode(byte Mode)
- Mode:byte - Modulation mode. 0 - OOK, 1 - FSK.
- Return value:byte - Error code
Band setting table:
| Band input level | Frequency band (MHz) | PLL divider ratio | Crystal oscillator frequency (MHz) |
| Low | 868 | 64 | 13.56 |
| High | 434 | 32 | 13.56 |
| High | 315 | 32 | 9.84 |
Note: Some methods can be implemented as macros.