src/apps/at_parser/at_parser.c
void AT_initParser( T_AT_handler pHandler, T_AT_storage* pStorage, uint16_t storageSize,  char* pBuffer, uint16_t bufferSize )
{
    T_AT_storage cmd;

    cmd.handler     = pHandler;
    cmd.hash        = makeHash("");
    cmd.len         = 0;
    handlerIdx      = 0;
    handlerSize     = storageSize;
    handlerStorage  = pStorage;
    paramStorage    = pBuffer;
    paramSize       = bufferSize;
    memset( ( void* )paramStorage, 0, paramSize );
    memset( ( void* )handlerStorage, 0, handlerSize * sizeof( T_AT_storage ) );
    handlerStorage[handlerIdx] = cmd;
    handlerIdx++;
}
/**
 * @brief AT Parser Initialization
 *
 * @param[in] pHandler          default handler
 * @param[in] pStorage          handler storage
 * @param[in] storageSize       handler storage size
 * @param[in] pBuffer           params array
 * @param[in] bufferSize        params array size
 *
 * Initialization should be executed before any other function. User can
 * execute this function later inside the application to reset AT Engine to
 * the default state.
 */


Initialization should be executed before any other function. User can
execute this function later inside the application to reset AT Engine to
the default state.
Initialization should be executed before any other function . User can execute this function later inside the application to reset AT Engine to the default state .
void AT_initParser( T_AT_handler pHandler, T_AT_storage* pStorage, uint16_t storageSize,  char* pBuffer, uint16_t bufferSize )
{
    T_AT_storage cmd;
    cmd.handler     = pHandler;
    cmd.hash        = makeHash("");
    cmd.len         = 0;
    handlerIdx      = 0;
    handlerSize     = storageSize;
    handlerStorage  = pStorage;
    paramStorage    = pBuffer;
    paramSize       = bufferSize;
    memset( ( void* )paramStorage, 0, paramSize );
    memset( ( void* )handlerStorage, 0, handlerSize * sizeof( T_AT_storage ) );
    handlerStorage[handlerIdx] = cmd;
    handlerIdx++;
}
void AT_initParser ( T_AT_handler pHandler , T_AT_storage * pStorage , uint16_t storageSize , char * pBuffer , uint16_t bufferSize ) { T_AT_storage cmd ; cmd . handler = pHandler ; cmd . hash = makeHash ( " " ) ; cmd . len = 0 ; handlerIdx = 0 ; handlerSize = storageSize ; handlerStorage = pStorage ; paramStorage = pBuffer ; paramSize = bufferSize ; memset ( ( void * ) paramStorage , 0 , paramSize ) ; memset ( ( void * ) handlerStorage , 0 , handlerSize * sizeof ( T_AT_storage ) ) ; handlerStorage [ handlerIdx ] = cmd ; handlerIdx ++ ; }
@brief AT Parser Initialization
 @param[in] pHandler          default handler
 @param[in] pStorage          handler storage
 @param[in] storageSize       handler storage size
 @param[in] pBuffer           params array
 @param[in] bufferSize        params array size
@brief AT Parser Initialization @param [ in ] pHandler default handler @param [ in ] pStorage handler storage @param [ in ] storageSize handler storage size @param [ in ] pBuffer params array @param [ in ] bufferSize params array size