#ifndef __LPA_PLATFORM_H__ | |
#define __LPA_PLATFORM_H__ | |
//#define lpa_log(format, args...) CPUartLogPrintf("[LPA][%s]"format, __func__, ##args) | |
//#define ct_lpa_log(level, fmt, args...) | |
//{if (level >= 0) CPUartLogPrintf(fmt, ##args);} | |
//#define UART_LOG_MAX_LENTH 200 | |
int lpaConnectUnixSocket(const char* socketName); | |
void lpaReceiveDataFromChan(void *arg); | |
int lpaSendATCMDWaitResp(char *command, char *response); | |
int https_request_ctcc(unsigned char *url,unsigned char *szPost, void *header, unsigned char **postRsp); | |
int open_logical_channel(char *dfname); | |
int send_ccho_sync(unsigned char *dfname); | |
int close_logical_channel(int session_id); | |
int send_cchc_sync(int session_id); | |
char *lpa_strsep(char **s, const char *del); | |
int at_tok_start(char **p_cur); | |
void skipWhiteSpace(char **p_cur); | |
void skipNextComma(char **p_cur); | |
char * nextTok(char **p_cur); | |
int at_tok_nextint_base(char **p_cur, int *p_out, int base, int uns); | |
int at_tok_nextint(char **p_cur, int *p_out); | |
int at_tok_nextstr(char **p_cur, char **p_out); | |
int ct_apdu_response(char *resp, char *tlvdata, int tlvdata_len, int *data_len); | |
int send_cgla_sync(int session_id, char *request, char **response); | |
int send_ct_cgla_sync(int sessionid, unsigned char *tlvHexData, unsigned char *rspTlvData); | |
int lpa_sema_trywait(void); | |
void lpa_sema_post(void); | |
void ct_lpa_log(int level,const char *fmt, ...); | |
#endif |