Home
Product
Contact
Documentation
Account
Team Members
numCAPTCHA is developed and maintained by Kabbage
Joel
Team Master
Isaac
AI Master
Kingold
AI Master
Rose
Web Master
Eric
Web Master
Business Enquiry
numCAPTCHA is developed and maintained by
Kabbage
.
Contact us at
kabbagebabbage@gmail.com


|
CC32XX SimpleLink Host Driver
<IP_ADDRESS>
|
Data Structures | |
| struct | SlPingReport_t |
| struct | SlPingStartCommand_t |
| struct | _slHttpServerString_t |
| struct | _slHttpServerData_t |
| struct | _slHttpServerPostData_t |
| union | SlHttpServerEventData_u |
| union | SlHttpServerResponsedata_u |
| struct | SlHttpServerEvent_t |
| struct | SlHttpServerResponse_t |
| struct | SlNetAppDhcpServerBasicOpt_t |
| struct | SlNetAppGetShortServiceIpv4List_t |
| struct | SlNetAppGetFullServiceIpv4List_t |
| struct | SlNetAppGetFullServiceWithTextIpv4List_t |
| struct | SlNetAppServiceAdvertiseTimingParameters_t |
Typedefs | |
|
typedef struct _slHttpServerString_t | slHttpServerString_t |
| typedef struct _slHttpServerData_t | slHttpServerData_t |
|
typedef struct _slHttpServerPostData_t | slHttpServerPostData_t |
| typedef void(* | P_SL_DEV_PING_CALLBACK )(SlPingReport_t *) |
Enumerations | |
| enum | SlNetAppGetServiceListType_e { SL_NET_APP_FULL_SERVICE_WITH_TEXT_IPV4_TYPE = 1, SL_NET_APP_FULL_SERVICE_IPV4_TYPE, SL_NET_APP_SHORT_SERVICE_IPV4_TYPE } |
Functions | |
| _i16 | sl_NetAppStart (const _u32 AppBitMap) |
| Starts a network application. More... | |
| _i16 | sl_NetAppStop (const _u32 AppBitMap) |
| Stops a network application. More... | |
| _i16 | sl_NetAppDnsGetHostByName (_i8 *hostname, const _u16 usNameLen, _u32 *out_ip_addr, const _u8 family) |
| Get host IP by name. More... | |
| _i32 | sl_NetAppDnsGetHostByService (_i8 *pServiceName, const _u8 ServiceLen, const _u8 Family, _u32 pAddr[], _u32 *pPort, _u16 *pTextLen, _i8 *pText) |
| Return service attributes like IP address, port and text according to service name. More... | |
| _i16 | sl_NetAppGetServiceList (const _u8 IndexOffest, const _u8 MaxServiceCount, const _u8 Flags, _i8 *pBuffer, const _u32 RxBufferLength) |
| Get service List Insert into out pBuffer a list of peer's services that are the NWP. The list is in a form of service struct. The user should chose the type of the service struct like: More... | |
| _i16 | sl_NetAppMDNSUnRegisterService (const _i8 *pServiceName, const _u8 ServiceNameLen) |
| Unregister mDNS service This function deletes the mDNS service from the mDNS package and the database. More... | |
| _i16 | sl_NetAppMDNSRegisterService (const _i8 *pServiceName, const _u8 ServiceNameLen, const _i8 *pText, const _u8 TextLen, const _u16 Port, const _u32 TTL, _u32 Options) |
| Register a new mDNS service. More... | |
| _i16 | sl_NetAppPingStart (const SlPingStartCommand_t *pPingParams, const _u8 family, SlPingReport_t *pReport, const P_SL_DEV_PING_CALLBACK pPingCallback) |
| send ICMP ECHO_REQUEST to network hosts More... | |
| _i32 | sl_NetAppSet (const _u8 AppId, const _u8 Option, const _u8 OptionLen, const _u8 *pOptionValue) |
| Internal function for setting network application configurations. More... | |
| _i32 | sl_NetAppGet (const _u8 AppId, const _u8 Option, _u8 *pOptionLen, _u8 *pOptionValue) |
| Internal function for getting network applications configurations. More... | |
| _i16 sl_NetAppDnsGetHostByName | ( | _i8 * | hostname, |
| const _u16 | usNameLen, | ||
| _u32 * | out_ip_addr, | ||
| const _u8 | family | ||
| ) |
Get host IP by name.
Obtain the IP Address of machine on network, by machine name.
| [in] | hostname | host name |
| [in] | usNameLen | name length |
| [out] | out_ip_addr | This parameter is filled in with host IP address. In case that host name is not resolved, out_ip_addr is zero. |
| [in] | family | protocol family |
| _i32 sl_NetAppDnsGetHostByService | ( | _i8 * | pServiceName, |
| const _u8 | ServiceLen, | ||
| const _u8 | Family, | ||
| _u32 | pAddr[], | ||
| _u32 * | pPort, | ||
| _u16 * | pTextLen, | ||
| _i8 * | pText | ||
| ) |
Return service attributes like IP address, port and text according to service name.
Hence it can make a connection to the specific service and use it. It is similar to get host by name method. It is done by a single shot query with PTR type on the service name. The command that is sent is from constant parameters and variables parameters.
| [in] | pService | Service name can be full or partial. Example for full service name:
|
| [in] | ServiceLen | The length of the service name (in_pService). |
| [in] | Family | IPv4 or IPv6 (SL_AF_INET , SL_AF_INET6). |
| [out] | pAddr | Contains the IP address of the service. |
| [out] | pPort | Contains the port of the service. |
| [out] | pTextLen | Has 2 options. One as Input field and the other one as output:
|
| [out] | pOut_pText | Contains the text of the service full or partial |
Only one sl_NetAppDnsGetHostByService can be handled at a time. Calling this API while the same command is called from another thread, may result in one of the two scenarios:
| _i32 sl_NetAppGet | ( | const _u8 | AppId, |
| const _u8 | Option, | ||
| _u8 * | pOptionLen, | ||
| _u8 * | pOptionValue | ||
| ) |
Internal function for getting network applications configurations.
| [in] | AppId | Application id, could be one of the following:
|
| [in] | SetOptions | set option, could be one of the following:
|
| [in] | OptionLen | The length of the allocated memory as input, when the function complete, the value of this parameter would be the len that actually read from the device. If the device return length that is longer from the input value, the function will cut the end of the returned structure and will return ESMALLBUF |
| [out] | pValues | pointer to the option structure which will be filled with the response from the device |
| _i16 sl_NetAppGetServiceList | ( | const _u8 | IndexOffest, |
| const _u8 | MaxServiceCount, | ||
| const _u8 | Flags, | ||
| _i8 * | pBuffer, | ||
| const _u32 | RxBufferLength | ||
| ) |
Get service List Insert into out pBuffer a list of peer's services that are the NWP. The list is in a form of service struct. The user should chose the type of the service struct like:
- Full service parameters with text. - Full service parameters. - Short service parameters (port and IP only) especially for tiny hosts.
The different types of struct are made to give the Possibility to save memory in the host
The user also chose how many max services to get and start point index NWP peer cache. For example:
See below - command parameters.
| [in] | indexOffset | - The start index in the peer cache that from it the first service is returned. |
| [in] | MaxServiceCount | - The Max services that can be returned if existed or if not exceed the max index in the peer cache |
| [in] | Flags | - an ENUM number that means which service struct to use (means which types of service to fill) |
| [out] | Buffer | - The Services are inserted into this buffer. In the struct form according to the bit that is set in the Flags input parameter. |
| _i16 sl_NetAppMDNSRegisterService | ( | const _i8 * | pServiceName, |
| const _u8 | ServiceNameLen, | ||
| const _i8 * | pText, | ||
| const _u8 | TextLen, | ||
| const _u16 | Port, | ||
| const _u32 | TTL, | ||
| _u32 | Options | ||
| ) |
Register a new mDNS service.
This registered service is a service offered by the application. The service name should be full service name according to RFC of the DNS-SD - meaning the value in name field in the SRV answer. Example for service name:
If the option is_unique is set, mDNS probes the service name to make sure it is unique before starting to announce the service on the network. Instance is the instance portion of the service name.
| [in] | ServiceLen | The length of the service. |
| [in] | TextLen | The length of the service should be smaller than 64. |
| [in] | port | The port on this target host port. |
| [in] | TTL | The TTL of the service |
| [in] | Options | bitwise parameters:
|
| [in] | pServiceName | The service name. Example for service name:
|
| [in] | pText | The description of the service. should be as mentioned in the RFC (according to type of the service IPP,FTP...) |
| _i16 sl_NetAppMDNSUnRegisterService | ( | const _i8 * | pServiceName, |
| const _u8 | ServiceNameLen | ||
| ) |
Unregister mDNS service This function deletes the mDNS service from the mDNS package and the database.
The mDNS service that is to be unregistered is a service that the application no longer wishes to provide.
The service name should be the full service name according to RFC of the DNS-SD - meaning the value in name field in the SRV answer.
Examples for service names:
| [in] | pServiceName | Full service name. Example for service name:
|
| [in] | ServiceLen | The length of the service. |
| _i16 sl_NetAppPingStart | ( | const SlPingStartCommand_t * | pPingParams, |
| const _u8 | family, | ||
| SlPingReport_t * | pReport, | ||
| const P_SL_DEV_PING_CALLBACK | pPingCallback | ||
| ) |
send ICMP ECHO_REQUEST to network hosts
Ping uses the ICMP protocol's mandatory ECHO_REQUEST
| [in] | pPingParams | Pointer to the ping request structure:
|
| [in] | family | SL_AF_INET or SL_AF_INET6 |
| [out] | pReport | Ping pReport |
| [out] | pCallback | Callback function upon completion. If callback is NULL, the API is blocked until data arrives |
| _i32 sl_NetAppSet | ( | const _u8 | AppId, |
| const _u8 | Option, | ||
| const _u8 | OptionLen, | ||
| const _u8 * | pOptionValue | ||
| ) |
Internal function for setting network application configurations.
| [in] | AppId | Application id, could be one of the following:
|
| [in] | SetOptions | set option, could be one of the following:
|
| [in] | OptionLen | option structure length |
| [in] | pOptionValues | pointer to the option structure |
| _i16 sl_NetAppStart | ( | const _u32 | AppBitMap) |
Starts a network application.
Gets and starts network application for the current WLAN mode
| [in] | AppBitMap | application bitmap, could be one or combination of the following:
|
| _i16 sl_NetAppStop | ( | const _u32 | AppBitMap) |
Stops a network application.
Gets and stops network application for the current WLAN mode
| [in] | AppBitMap | application id, could be one of the following:
|