Functions | |
NMI_API uint8 | m2m_checksum (uint8 *buf, int sz) |
calculates checksum for the specified number of data bytes in specified data buffer More... | |
NMI_API 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... | |
NMI_API void | m2m_memcpy (uint8 *pDst, uint8 *pSrc, uint32 sz) |
Copy specified number of bytes from source buffer to destination buffer. More... | |
NMI_API void | m2m_memset (uint8 *pBuf, uint8 val, uint32 sz) |
Set specified number of data bytes in specified data buffer to specified value. More... | |
NMI_API uint16 | m2m_strlen (uint8 *pcStr) |
Returns the string length of a null terminated string buffer. More... | |
NMI_API uint8 | m2m_strncmp (uint8 *pcS1, uint8 *pcS2, uint16 u16Len) |
Compare specified number of data bytes in string buffers pcS1 and pcS2. More... | |
NMI_API 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... | |
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) |
Definition at line 46 of file nm_common.c.
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 |
Definition at line 116 of file nm_common.c.
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 |
Definition at line 36 of file nm_common.c.
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) |
Definition at line 58 of file nm_common.c.
Returns the string length of a null terminated string buffer.
[in] | pcStr | null terminated string buffer |
Definition at line 68 of file nm_common.c.
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 |
Definition at line 79 of file nm_common.c.
Find the occurrence of pcStr string in pcIn string.
[in] | pcStr | one of two string buffers |
[in] | pcIn | one of two string buffers |
Definition at line 93 of file nm_common.c.
void(* at_sb_printf)(const char *_format,...) |
chooses which function to use in order to output debug
Definition at line 237 of file nm_common.h.