Microchip® Advanced Software Framework

winc1500/host_drv/common/source/nm_common.c File Reference

This module contains common APIs declarations.

Copyright (c) 2016-2021 Microchip Technology Inc. and its subsidiaries.

#include "common/include/nm_common.h"

Functions

static uint8 hexchar_2_val (uint8 ch)
 
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 (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...
 
uint8m2m_strstr (uint8 *pcIn, uint8 *pcStr)
 Find the occurrence of pcStr string in pcIn string. More...
 

static uint8 hexchar_2_val ( uint8  ch)
static

Referenced by hexstr_2_bytes().