32#ifndef __CELLULAR_AT_CORE_H__
33#define __CELLULAR_AT_CORE_H__
49#ifndef CELLULAR_DO_NOT_USE_CUSTOM_CONFIG
51 #include "cellular_config.h"
60#define ARRAY_SIZE( x ) ( sizeof( x ) / sizeof( x[ 0 ] ) )
67typedef enum CellularATError
260 char ** ppTokOutput );
281 const char * pDelimiter,
282 char ** ppTokOutput );
316 uint16_t hexDataLen );
370 const char * pPrefix,
385 const char *
const *
const ppKeyList,
CellularATError_t Cellular_ATGetNextTok(char **ppString, char **ppTokOutput)
Extract the next token based on comma (',') as delimiter.
Definition: cellular_at_core.c:507
CellularATError_t
Represents error codes returned from AT Core APIs.
Definition: cellular_at_core.h:68
@ CELLULAR_AT_UNKNOWN
Definition: cellular_at_core.h:75
@ CELLULAR_AT_MODEM_ERROR
Definition: cellular_at_core.h:73
@ CELLULAR_AT_SUCCESS
Definition: cellular_at_core.h:69
@ CELLULAR_AT_BAD_PARAMETER
Definition: cellular_at_core.h:70
@ CELLULAR_AT_NO_MEMORY
Definition: cellular_at_core.h:71
@ CELLULAR_AT_ERROR
Definition: cellular_at_core.h:74
@ CELLULAR_AT_UNSUPPORTED
Definition: cellular_at_core.h:72
CellularATError_t Cellular_ATRemoveLeadingWhiteSpaces(char **ppString)
Remove all leading white spaces from an AT response.
Definition: cellular_at_core.c:263
CellularATError_t Cellular_ATRemovePrefix(char **ppString)
Remove prefix from a string.
Definition: cellular_at_core.c:219
CellularATError_t Cellular_ATcheckErrorCode(const char *pInputBuf, const char *const *const ppKeyList, size_t keyListLen, bool *pResult)
check if certain success code/error code present in the input buffer
Definition: cellular_at_core.c:723
CellularATError_t Cellular_ATRemoveAllWhiteSpaces(char *pString)
Remove all white spaces from an AT response.
Definition: cellular_at_core.c:356
CellularATError_t Cellular_ATRemoveAllDoubleQuote(char *pString)
Remove all double quotes from an AT response.
Definition: cellular_at_core.c:461
CellularATError_t Cellular_ATStrDup(char **ppDst, const char *pSrc)
duplicate string from pSrc to ppDst, malloc is use to allocate mem space for ppDst
Definition: cellular_at_core.c:767
CellularATError_t Cellular_ATStrtoi(const char *pStr, int32_t base, int32_t *pResult)
Convert string to int32_t.
Definition: cellular_at_core.c:818
CellularATError_t Cellular_ATIsStrDigit(const char *pString, bool *pResult)
Check if a string is numeric.
Definition: cellular_at_core.c:677
CellularATError_t Cellular_ATRemoveTrailingWhiteSpaces(char *pString)
Remove all trailing white spaces from an AT response.
Definition: cellular_at_core.c:303
CellularATError_t Cellular_ATHexStrToHex(const char *pString, uint8_t *pHexData, uint16_t hexDataLen)
Convert HEX string to HEX.
Definition: cellular_at_core.c:614
CellularATError_t Cellular_ATStrStartWith(const char *pString, const char *pPrefix, bool *pResult)
check if a string starts with certain prefix
Definition: cellular_at_core.c:163
CellularATError_t Cellular_ATIsPrefixPresent(const char *pString, bool *pResult)
check if a string as prefix present by determine present of ':'
Definition: cellular_at_core.c:96
CellularATError_t Cellular_ATRemoveOutermostDoubleQuote(char **ppString)
Remove outermost double quotes from an AT response.
Definition: cellular_at_core.c:409
CellularATError_t Cellular_ATGetSpecificNextTok(char **ppString, const char *pDelimiter, char **ppTokOutput)
Extract the next token based on the provided delimiter.
Definition: cellular_at_core.c:528
This represents the default values for the configuration macros for the Cellular library.