NetBurner 3.5.8
PDF Version
Toggle main menu visibility
atcommand.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
8
16
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
38
typedef
int(
ProcessATcommandFunc
)(
int
uartnum,
const
char
*pCommand, FILE *pResponseFile,
int
reason);
39
43
void
EnableATCommands
(
int
port_number,
ProcessATcommandFunc
*pcmdf,
int
task_priority);
44
48
void
DisableATCommands
(
int
port_number);
49
50
#endif
51
EnableATCommands
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.
DisableATCommands
void DisableATCommands(int port_number)
Disable AT command.
ProcessATcommandFunc
int ProcessATcommandFunc(int uartnum, const char *pCommand, FILE *pResponseFile, int reason)
typedef for the AT command processing function
Definition
atcommand.h:38
nbrtos
include
atcommand.h
Generated by
1.18.0