42 #include <ti/drivers/net/wifi/simplelink.h> 70 #define SL_DEVICE_EVENT_BIT(EventId) (SL_WLAN_VAL_2_MASK(EventId,1) ) 76 SL_DEVICE_EVENT_FATAL_DEVICE_ABORT = 1,
77 SL_DEVICE_EVENT_FATAL_DRIVER_ABORT,
78 SL_DEVICE_EVENT_FATAL_SYNC_LOSS,
79 SL_DEVICE_EVENT_FATAL_NO_CMD_ACK,
80 SL_DEVICE_EVENT_FATAL_CMD_TIMEOUT,
81 SL_DEVICE_EVENT_RESET_REQUEST,
82 SL_DEVICE_EVENT_ERROR,
95 SL_DEVICE_SOURCE_OTHER,
96 SL_DEVICE_SOURCE_WLAN,
97 SL_DEVICE_SOURCE_NETCFG,
98 SL_DEVICE_SOURCE_NETAPP,
99 SL_DEVICE_SOURCE_SECURITY,
101 SL_DEVICE_SOURCE_LAST = 0xFF
106 SlDeviceSource_e Source;
120 SL_DEVICE_RESET_REQUEST_CALLER_PROVISIONING,
121 SL_DEVICE_RESET_REQUEST_CALLER_PROVISIONING_EXTERNAL_CONFIGURATION,
122 SL_DEVICE_RESET_REQUEST_NUM_OF_CALLERS
123 }SlDeviceResetRequestCaller_e;
156 SlDeviceFatalCmdTimeout_t CmdTimeout;
171 #define SL_DEVICE_GENERAL (1) 172 #define SL_DEVICE_IOT (4) 173 #define SL_DEVICE_STATUS (2) 174 #define SL_DEVICE_FIPS (6) 178 #define SL_DEVICE_GENERAL_DATE_TIME (11) 179 #define SL_DEVICE_GENERAL_PERSISTENT (5) 180 #define SL_DEVICE_GENERAL_VERSION (12) 181 #define SL_DEVICE_FIPS_ZEROIZATION (20) 184 #define SL_DEVICE_STAT_WLAN_RX (16) 185 #define SL_DEVICE_STAT_PM (14) 190 #define SL_DEVICE_IOT_UDID (41) 191 #define SL_DEVICE_DICE_VERSION (14) 194 #define SL_DEVICE_EVENT_CLASS_DEVICE (1) 195 #define SL_DEVICE_EVENT_CLASS_WLAN (2) 196 #define SL_DEVICE_EVENT_CLASS_BSD (3) 197 #define SL_DEVICE_EVENT_CLASS_NETAPP (4) 198 #define SL_DEVICE_EVENT_CLASS_NETCFG (5) 199 #define SL_DEVICE_EVENT_CLASS_FS (6) 200 #define SL_DEVICE_EVENT_CLASS_NETUTIL (7) 203 #define SL_DEVICE_SYSCONFIG_AS_CONFIGURED (99) 206 #define SL_DEVICE_EVENT_DROPPED_DEVICE_ASYNC_GENERAL_ERROR (0x00000001L) 207 #define SL_DEVICE_STATUS_DEVICE_SMART_CONFIG_ACTIVE (0x80000000L) 210 #define SL_DEVICE_EVENT_DROPPED_WLAN_WLANASYNCONNECTEDRESPONSE (0x00000001L) 211 #define SL_DEVICE_EVENT_DROPPED_WLAN_WLANASYNCDISCONNECTEDRESPONSE (0x00000002L) 212 #define SL_DEVICE_EVENT_DROPPED_WLAN_STA_CONNECTED (0x00000004L) 213 #define SL_DEVICE_EVENT_DROPPED_WLAN_STA_DISCONNECTED (0x00000008L) 214 #define SL_DEVICE_EVENT_DROPPED_WLAN_P2P_DEV_FOUND (0x00000010L) 215 #define SL_DEVICE_EVENT_DROPPED_WLAN_CONNECTION_FAILED (0x00000020L) 216 #define SL_DEVICE_EVENT_DROPPED_WLAN_P2P_NEG_REQ_RECEIVED (0x00000040L) 217 #define SL_DEVICE_EVENT_DROPPED_WLAN_RX_FILTERS (0x00000080L) 220 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IPACQUIRED (0x00000001L) 221 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IPACQUIRED_V6 (0x00000002L) 222 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IP_LEASED (0x00000004L) 223 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IP_RELEASED (0x00000008L) 224 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IPV4_LOST (0x00000010L) 225 #define SL_DEVICE_EVENT_DROPPED_NETAPP_DHCP_ACQUIRE_TIMEOUT (0x00000020L) 226 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IP_COLLISION (0x00000040L) 227 #define SL_DEVICE_EVENT_DROPPED_NETAPP_IPV6_LOST (0x00000080L) 230 #define SL_DEVICE_EVENT_DROPPED_SOCKET_TXFAILEDASYNCRESPONSE (0x00000001L) 238 #ifdef SL_IF_TYPE_UART 242 _u8 FlowControlEnable;
247 #ifdef SL_IF_TYPE_UART 249 #define SL_DEVICE_BAUD_9600 (9600L) 250 #define SL_DEVICE_BAUD_14400 (14400L) 251 #define SL_DEVICE_BAUD_19200 (19200L) 252 #define SL_DEVICE_BAUD_38400 (38400L) 253 #define SL_DEVICE_BAUD_57600 (57600L) 254 #define SL_DEVICE_BAUD_115200 (115200L) 255 #define SL_DEVICE_BAUD_230400 (230400L) 256 #define SL_DEVICE_BAUD_460800 (460800L) 257 #define SL_DEVICE_BAUD_921600 (921600L) 304 _u32 ReceivedValidPacketsNumber;
305 _u32 ReceivedFcsErrorPacketsNumber;
306 _u32 ReceivedAddressMismatchPacketsNumber;
307 _i16 AvarageDataCtrlRssi;
308 _i16 AvarageMgMntRssi;
309 _u16 RateHistogram[SL_WLAN_NUM_OF_RATE_INDEXES];
310 _u16 RssiHistogram[SL_WLAN_SIZE_OF_RSSI_HISTOGRAM];
319 _u32 ReceivedBytesCount;
332 _u32 TimeMacAwake[2];
333 _u32 TimeMacSleep[2];
334 _u32 TimeMacListen11B[2];
335 _u32 TimeNWPDeepSleep[2];
336 _u32 TimeNWPStandBy[2];
337 _u32 TimeNWPAwake[2];
428 #if _SL_INCLUDE_FUNC(sl_Start) 429 _i16
sl_Start(
const void* pIfHdl, _i8* pDevName,
const P_INIT_CALLBACK pInitCallBack);
460 #if _SL_INCLUDE_FUNC(sl_Stop) 461 _i16
sl_Stop(
const _u16 Timeout);
515 #if _SL_INCLUDE_FUNC(sl_DeviceSet) 516 _i16
sl_DeviceSet(
const _u8 DeviceSetId ,
const _u8 Option,
const _u16 ConfigLen,
const _u8 *pValues);
622 #if _SL_INCLUDE_FUNC(sl_DeviceGet) 623 _i16
sl_DeviceGet(
const _u8 DeviceGetId, _u8 *pOption,_u16 *pConfigLen, _u8 *pValues);
695 #if _SL_INCLUDE_FUNC(sl_DeviceEventMaskSet) 734 #if _SL_INCLUDE_FUNC(sl_DeviceEventMaskGet) 759 #if _SL_INCLUDE_FUNC(sl_Task) 781 #ifdef SL_IF_TYPE_UART 782 #if _SL_INCLUDE_FUNC(sl_DeviceUartSetMode) _i16 sl_DeviceStatStop(const _u32 Flags)
Stop collecting Device statistic, (if previous called sl_DeviceStatStart)
_i16 sl_DeviceEventMaskSet(const _u8 EventClass, const _u32 Mask)
Set asynchronous event mask.
_i16 sl_DeviceGet(const _u8 DeviceGetId, _u8 *pOption, _u16 *pConfigLen, _u8 *pValues)
Internal function for getting device configurations.
void * sl_Task(void *pEntry)
The SimpleLink task entry.
_i16 sl_DeviceSet(const _u8 DeviceSetId, const _u8 Option, const _u16 ConfigLen, const _u8 *pValues)
Setting device configurations.
_i16 sl_Stop(const _u16 Timeout)
Stop the SimpleLink device.
_i32 sl_WifiConfig()
Configure SimpleLink to default state.
_i16 sl_DeviceEventMaskGet(const _u8 EventClass, _u32 *pMask)
Get current event mask of the device.
_i16 sl_DeviceStatStart(const _u32 Flags)
Start collecting Device statistics (including RX statistics), for unlimited time. ...
_i16 sl_DeviceUartSetMode(const SlDeviceUartIfParams_t *pUartParams)
Setting the internal uart mode.
_i16 sl_Start(const void *pIfHdl, _i8 *pDevName, const P_INIT_CALLBACK pInitCallBack)
Start the SimpleLink device.
_i16 sl_DeviceStatGet(const _u16 ConfigId, _u16 length, void *buffer)
Getting DEVICE statistics.