![Texas Instruments CC3220 Скачать руководство пользователя страница 201](http://html.mh-extra.com/html/texas-instruments/cc3220/cc3220_programmers-manual_1094609201.webp)
Changing Socket Properties
201
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Transceiver
•
SL_TX_INHIBIT_THRESHOLD_HIGH (–48 dBm)
•
SL_TX_INHIBIT_THRESHOLD_MAX (–38 dBm)
Example:
_i16 Status;
_u32 thrshld = SL_TX_INHIBIT_THRESHOLD_MED;
Status = sl_SetSockOpt(soc, SL_SOL_PHY_OPT, SL_SO_PHY_TX_INHIBIT_THRESHOLD,
&thrshld,
sizeof
(thrshld));
if
(Status)
{
/* Error */
}
13.6.7 Set Tx Frames Time-out
Tx time-out for transceiver frames (lifetime) can be set. The value is given in ms (maximum value is 100
ms).
Example:
_i16 Status;
_u32 TimeOut = 50;
Status = sl_SetSockOpt(soc, SL_SOL_PHY_OPT,
SL_SO_PHY_TX_TIMEOUT,&TimeOut,
sizeof
(TimeOut));
if
(Status)
{
/* Error */
}
13.6.8 Enable or Disable Sending ACKs
Enable or disable sending ACKs in transceiver mode (enable = 1, disable = 0). This option is disabled by
default.
Example:
_i16 Status;
_u32 Acks = 1;
/* 0 = disabled / 1 = enabled */
Status = sl_SetSockOpt(soc, SL_SOL_PHY_OPT,
SL_SO_PHY_ALLOW_ACKS ,&Acks,
sizeof
(Acks));
if
(Status)
{
/* Error */
}
13.7 Limitations
•
Only one transceiver socket is supported in the system.
•
Transceiver mode is available in STA mode only.
•
Length of a received packet is trimmed if it exceeds 1536 bytes of data. Each packet includes the 8
bytes of proprietary header. Therefore, the receive buffer should be set to a maximum of 1544 bytes.
•
Cannot transmit a frame over 1536 total bytes (including any header) and below 14 bytes (shortest
MAC header).
•
Transceiver mode is not available in connected mode. Auto-connection mode is also considered as
connected mode, even if not connected.
•
sl_SendTo and sl_RecvFrom are not available in transceiver mode.