NetBurner 3.5.0
PDF Version
 
atcommand.h
Go to the documentation of this file.
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
17#ifndef _AT_COMMAND_H
18#define _AT_COMMAND_H
19#include <stdio.h>
20
22#define AT_COMMAND_REASON_START_AT (1)
24#define AT_COMMAND_REASON_EXIT_AT (2)
26#define AT_COMMAND_REASON_NORMAL_COMMAND (3)
27
29#define AT_COMMAND_OK (1)
31#define AT_COMMAND_EXIT (2)
32
38typedef int(ProcessATcommandFunc)(int uartnum, const char *pCommand, FILE *pResponseFile, int reason);
39
43void EnableATCommands(int port_number, ProcessATcommandFunc *pcmdf, int task_priority);
44
48void DisableATCommands(int port_number);
49
50#endif
51
void EnableATCommands(int port_number, ProcessATcommandFunc *pcmdf, int task_priority)
Enable AT command on the specific serial port, port must already be popen'd in interrupt mode.
void DisableATCommands(int port_number)
Disable AT command.
int ProcessATcommandFunc(int uartnum, const char *pCommand, FILE *pResponseFile, int reason)
typedef for the AT command processing function
Definition atcommand.h:38