NetBurner 3.1
atcommand.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
#ifndef _AT_COMMAND_H
5
#define _AT_COMMAND_H
6
7
#define AT_COMMAND_REASON_START_AT (1)
8
#define AT_COMMAND_REASON_EXIT_AT (2)
9
#define AT_COMMAND_REASON_NORMAL_COMMAND (3)
10
11
#define AT_COMMAND_OK (1)
12
#define AT_COMMAND_EXIT (2)
13
14
/* type def for the AT command processing function */
15
/* Needs to return one of :
16
17
AT_COMMAND_OK
18
AT_COMMAND_EXIT
19
*/
20
typedef
int(ProcessATcommandFunc)(
int
uartnum,
const
char
*pCommand, FILE *pResponseFile,
int
reason);
21
22
/* Enable AT command on the specific serial port, port must already be popend in interrupt mode. */
23
void
EnableATCommands(
int
port_number, ProcessATcommandFunc *pcmdf,
int
task_priority);
24
25
void
DisableATCommands(
int
port_number);
26
27
#endif
nbrtos
include
atcommand.h
Generated by
1.8.14