Functions | |
sint8 | hexstr_2_bytes (uint8 *pu8Out, uint8 *pu8In, uint8 u8SizeOut) |
Converts a string of hex characters to bytes. More... | |
uint8 | m2m_checksum (uint8 *buf, int sz) |
Calculates checksum for the specified number of data bytes in specified data buffer. More... | |
sint8 | m2m_memcmp (uint8 *pu8Buff1, uint8 *pu8Buff2, uint32 u32Size) |
Compare specified number of data bytes in pu8Buff1 and pu8Buff2 and decide if they all match. More... | |
void | m2m_memcpy (uint8 *pDst, uint8 *pSrc, uint32 sz) |
Copy specified number of bytes from source buffer to destination buffer. More... | |
void | m2m_memset (uint8 *pBuf, uint8 val, uint32 sz) |
Set specified number of data bytes in specified data buffer to specified value. More... | |
uint16 | m2m_strlen (const uint8 *pcStr) |
Returns the length of a null terminated string buffer. More... | |
uint16 | m2m_strlen (uint8 *pcStr) |
Returns the length of a null terminated string buffer. More... | |
uint8 | m2m_strncmp (uint8 *pcS1, uint8 *pcS2, uint16 u16Len) |
Compare specified number of data bytes in string buffers pcS1 and pcS2. More... | |
uint8 * | m2m_strstr (uint8 *pcIn, uint8 *pcStr) |
Find the occurrence of pcStr string in pcIn string. More... | |
Variables | |
NMI_API void(* | at_sb_printf )(const char *_format,...) |
Chooses which function to use in order to output debug. More... | |
Converts a string of hex characters to bytes.
[out] | pu8Out | Output buffer (eg {0x11, 0x12, 0x13,...}) |
[in] | pu8In | Input buffer (eg {0x31, 0x31, 0x31, 0x32, 0x31, 0x33, ...}) |
[in] | u8SizeOut | Length of output buffer (should be half of the length of the input buffer). |
Referenced by m2m_wifi_connect_psk(), and m2m_wifi_connect_wep().
Calculates checksum for the specified number of data bytes in specified data buffer.
[in] | sz | Number of data bytes used in the checksum calculation. |
[in] | buf | The specified data buffer (whose data bytes will be used to calculate the checksum). |
[in] | sz | Number of data bytes used in the checksum calculation. |
[in] | buf | The specified data buffer (whose data bytes will be used to calculate the checksum). |
Compare specified number of data bytes in pu8Buff1 and pu8Buff2 and decide if they all match.
[in] | u32Size | Number of data bytes to compare. |
[in] | pu8Buff1 | One of two data buffers for the comparison. |
[in] | pu8Buff2 | One of two data buffers for the comparison. |
[in] | u32Size | Number of data bytes to compare. |
[in] | pu8Buff1 | One of two data buffers for the comparison. |
[in] | pu8Buff2 | One of two data buffers for the comparison. |
Referenced by GetResponseCode(), ReadServerX509Chain(), UpdateRootList(), and winc_flash_compare().
Copy specified number of bytes from source buffer to destination buffer.
[in] | sz | Number of data bytes to copy. |
[in] | pSrc | Source buffer. |
[out] | pDst | Destination buffer. |
[in] | sz | Number of data bytes to copy. |
[in] | pSrc | Source buffer. |
[out] | pDst | Destination buffer. |
Referenced by bind(), connect(), construct_http_response(), FormatMsg(), get_tls_cert_value(), legacy_connect_prepare_msg(), m2m_ssl_send_certs_to_winc(), m2m_wifi_1x_get_option(), m2m_wifi_1x_set_option(), m2m_wifi_cb(), m2m_wifi_configure_sntp(), m2m_wifi_connect_1x_mschap2(), m2m_wifi_connect_1x_tls(), m2m_wifi_connect_prepare_msg(), m2m_wifi_connect_psk(), m2m_wifi_connect_wep(), m2m_wifi_delete_sc(), m2m_wifi_enable_ap(), m2m_wifi_set_device_name(), m2m_wifi_set_mac_address(), m2m_wifi_start_provision_mode(), m2m_wifi_start_provision_mode_ext(), m2m_wifi_wps(), nmi_get_mac_address(), nmi_get_otp_mac_address(), nmi_inet_addr(), set_alpn_list(), socket_cb(), sslSetSockOpt(), UpdateRootList(), and writeRootCertEntry().
Set specified number of data bytes in specified data buffer to specified value.
[in] | sz | Number of data bytes (in specified data buffer whose values are to be set to the specified value). |
[in] | val | The specified value (to which data bytes in data buffer will be set). |
[out] | pBuf | The specified data buffer (whose data bytes will be set to the specified value). |
[in] | sz | Number of data bytes (in specified data buffer whose values are to be set to the specified value). |
[in] | val | The specified value (to which data bytes in data buffer will be set). |
[out] | pBuf | The specified data buffer (whose data bytes will be set to the specified value). |
Referenced by app_wifi_init(), close(), hif_deinit(), hif_init(), IperfInit(), IperfSocketClose(), IperfSocketEventHandler(), IperfTCP_ClientStart(), IperfTCP_ServerStart(), IperfUDP_ClientStart(), IperfUDP_ServerStart(), legacy_connect_prepare_msg(), m2m_ota_cb(), m2m_wifi_1x_set_option(), m2m_wifi_cb(), m2m_wifi_connect_1x_mschap2(), m2m_wifi_connect_1x_tls(), m2m_wifi_connect_prepare_msg(), m2m_wifi_connect_psk(), m2m_wifi_delete_sc(), nm_get_firmware_full_info(), nm_get_ota_firmware_info(), nmi_get_otp_mac_address(), NMI_GrowldeInit(), NMI_GrowlInit(), post_main_page(), sendto(), socket(), socketDeinit(), socketInit(), and writeRootCertEntry().
Returns the length of a null terminated string buffer.
[in] | pcStr | Null terminated string buffer. |
Referenced by app_wifi_init(), gethostbyname(), m2m_ota_host_file_get(), m2m_ota_notif_set_url(), m2m_ota_start_update(), m2m_strstr(), m2m_validate_ap_parameters(), m2m_wifi_connect_sc(), m2m_wifi_start_provision_mode_ext(), main(), NMI_GrowlSendNotification(), set_alpn_list(), set_dev_name_to_mac(), wifi_ap_connect(), and wifi_cb().
Returns the length of a null terminated string buffer.
[in] | pcStr | Null terminated string buffer. |
Compare specified number of data bytes in string buffers pcS1 and pcS2.
[in] | u16Len | Number of data bytes to compare. |
[in] | pcS1 | First of two string buffers for the comparison. |
[in] | pcS2 | Second of two string buffers for the comparison. |
[in] | u16Len | Number of data bytes to compare. |
[in] | pcS1 | First of two string buffers for the comparison. |
[in] | pcS2 | Second of two string buffers for the comparison. |
Referenced by m2m_strstr(), and TlsSrvSecFopen().
Find the occurrence of pcStr string in pcIn string.
[in] | pcStr | One of two string buffers. |
[in] | pcIn | One of two string buffers. |
[in] | pcStr | One of two string buffers. |
[in] | pcIn | One of two string buffers. |
Referenced by AppServerCb(), and handle_tcpip_recv().
void(* at_sb_printf)(const char *_format,...) |
Chooses which function to use in order to output debug.