Radio Cca; Radio Packet Trace Interface (Pti); Send A Tone Or A Carrier Wave - ST SimpleMAC STM32W108 Series User Manual

Table of Contents

Advertisement

Designing an application using the SimpleMAC Library APIs
5.8.2

Radio CCA

To read the current status (clear or busy) of the selected channel, call the
ST_RadioChannelIsClear API:
boolean channel_status;
/* Get the channel status (clear or busy) */
channel_status = ST_RadioChannelIsClear();
5.8.3

Radio packet trace interface (PTI)

The STM32W108xx includes a packet trace interface (PTI) module which performs robust
packet-based debugging. The PTI lines (PTI_EN, PTI_DATA on GPIO[4:5]) allow accessing
all the received radio packets in a non-intrusive way.
To enable PTI, call the ST_RadioEnablePacketTrace API:
/* enable packet trace interface (default is enabled) */
ST_RadioEnablePacketTrace(TRUE);
To read the current packet trace status (enabled or disabled), call the
ST_RadioPacketTraceEnabled API, as shown below:
boolean packet_trace_status;
packet_trace_status = ST_RadioPacketTraceEnabled();
5.8.4

Send a tone or a carrier wave

The SimpleMAC library provides some APIs which allow performing demodulated carrier
wave ("tone") transmission or modulated carrier wave transmission on the current channel.
These APIs can be used to test scenarios such as transmit power level measurement.
To start/stop a demodulated carrier wave ("tone") transmission, call the following APIs:
/* Start sending a tone */
ST_RadioStartTransmitTone()
/* Stop the tone transmission */
ST_RadioStopTransmitTone(void);
To start/stop a modulated carrier wave transmission, call the following APIs:
/* Start sending a carrier wave */
ST_RadioStartTransmitStream()
/* Stop modulated carrier wave transmission */
ST_RadioStopTransmitStream(void);
50/54
Doc ID 16995 Rev 10
UM0893

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SimpleMAC STM32W108 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents