AP (API Enable)

This command applies to the XTC RF Module.

Set or read the API mode setting. The device can format the RF packets it receives into API frames and send them out the serial port.

When you enable API, you must format the serial data as API frames because Transparent operating mode is disabled.

Enables API Mode. The device ignores this command when using SPI. API mode 1 is always used.

Binary command

N/A

Parameter range

0 - 2

Parameter Description
0

Transparent mode, API mode is off. All UART input and output is raw data and the device uses the RO and RB parameters to delineate packets.

1 API Mode Without Escapes. The device packetizes all UART input and output data in API format, without escape sequences.
2 API Mode With Escapes. The device is in API mode and inserts escaped sequences to allow for control characters. The device passes XON (0x11), XOFF (0x13), Escape (0x7D), and start delimiter 0x7E as data.

Default

0

Bytes returned

1