at_command.h 1.25 KB
#ifndef _AT_COMMAND_H
#define _AT_COMMAND_H

#define MAX_AT_COMAND_BUF	255


enum {
	CIND_service_index = 1,
		CIND_call_index,
		CIND_callsetup_index,
		CIND_battchg_index,
		CIND_signal_index,
		CIND_roam_index,
		CIND_callheld_index = (CIND_roam_index + 9)		/*BlackBerry is more than spec*/
};

u8 at_send_BRSF (u8 *buf);
u8 at_send_BAC (u8 *buf);
u8 at_send_CIND_1 (u8 *buf);
u8 at_send_CIND_2 (u8 *buf);
u8 at_send_CMER (u8 *buf);
u8 at_send_ATA (u8 *buf);
u8 at_send_CHUP (u8 *buf);
u8 at_send_NREC (u8 *buf);
u8 at_send_CLIP (u8 *buf);
u8 at_send_VGS (u8 *buf, u8 vol);
u8 at_send_VGM (u8 *buf, u8 vol);
u8 at_send_BLDN (u8 *buf);
u8 at_send_BCC (u8 *buf);



u8 at_BRSF (u8 *buf, int *feat);
u8 at_OK(u8 *buf);
u8 at_ERROR(u8 *buf);
u8 at_CIND(u8 *buf);

u8 at_CIND_process(U8 *buf, u8 *cind_index);
u8 at_CIND_process_cstatus(u8 *buf, u8 *cind_cstatus);
u8 at_CIEV(u8 *buf, u8 *ciev_ind);
u8 at_RING(u8 *buf);
u8 at_CLIP(u8 *buf, U8 *clip_buf, u8 n);
u8 at_send_BVRA_ACTI (u8 *buf);

u8 at_VGS (u8 *buf, u8 *vol);
u8 at_VGM (u8 *buf, u8 *vol);


u8 at_CIEV_test(u8 *buf);

u8 at_send_XAPL (u8 *buf);
u8 at_send_iphone_accev (u8 *buf, u8 batt);
u8 at_XAPL(u8 *buf);

u8 at_BCS (u8 *buf, u8 *codec);
u8 at_send_BCS (u8 *buf, u8 codec);
u8 at_send_ERROR (u8 *buf);
#endif