blob: db633aa328f83fdf4534de34beb4b0ec78c7d22d [file] [log] [blame]
#ifndef __ECALL_SMS_H__
#define __ECALL_SMS_H__
#ifndef NO_AUDIO
void ecall_sms_parse_pdu(char *smsPdu);
void ecall_sms_parse_src_number(char *pdu, int srcNumLen, char *srcNumOut);
void ecall_sms_parse_SFRD(char *sfrd);
void ecall_sms_hex2str(int len, char *psrc, char *pdest);
void ecall_sms_parse_RD(char *rd);
unsigned short ecall_sms_ntohs(unsigned short num);
void ecall_sms_parse_SRD(char *srd, int sst);
void ecall_sms_parse_cmd_srd(char *cmdSrd);
void ecall_sms_parse_cmd_cd(char *cmdCd);
int ecall_sms_char2int(char c);
unsigned short ecall_sms_CRC16(unsigned char *payload, unsigned short len);
unsigned char ecall_sms_CRC8(unsigned char *payload, unsigned char len);
unsigned char * ecall_sms_msdSMS(char *msd, int msdLen);
void ecall_sms_pack_TLP(char *SVR, int SVRLen, char *packedTLP, int *TLPLen);
void ecall_sms_pack_services(char *RD, int RDLen, char *packedSvr, int *SVRLen);
void ecall_sms_pack_RD(char *SRD, int SRDLen, char *packedRD, int *RDLen);
void ecall_sms_pack_SRD(char *msd, int msdLen, char *packedSRD, int *packedLen);
char *ecall_sms_pack_numberPdu(char *smsNumber);
char *ecall_sms_itoa_uint8(unsigned char data);
char *ecall_sms_itoa_uint16(unsigned short data);
char * ecall_sms_pack_pduHeader(char *smsNumber, unsigned char udl);
unsigned short ecall_sms_get_sfrcs(unsigned char *msdSMS);
unsigned char ecall_sms_get_hcs(unsigned char *msdSMS);
void ecall_sms_send_cmd_confirmed(void);
#endif
#endif