00001 /****************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved. 00004 *****************************************************************************/ 00013 #ifndef ALP_CAIF_H_ 00014 #define ALP_CAIF_H_ 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif // __cplusplus 00019 00020 00021 /****************************************************************************** 00022 * Defines 00023 *****************************************************************************/ 00024 00025 // Message type 00026 #define ALP_CAIF_MESSAGE_TYPE_COMMAND 1 00027 #define ALP_CAIF_MESSAGE_TYPE_RESULT 2 00028 #define ALP_CAIF_MESSAGE_TYPE_NOTIFICATION 3 00029 00030 #define ALP_CAIF_CHANNEL_DEBUG 3 00031 #define ALP_CAIF_CHANNEL_AGPS 4 00032 00033 00034 // Traces 00035 #define ALP_CAIF_TRACE_CLASS ALP_TRACE_DEFINE(ALP_CLASS_CAIF, 1) 00036 00037 00038 typedef void (AlpCaifCallbackProc)(size_t dataLength, void* userData); 00039 00040 00041 /****************************************************************************** 00042 * Prototypes 00043 *****************************************************************************/ 00044 00045 alp_status_t alp_caif_open(uint32_t iChannel, int* fdP); 00046 alp_status_t alp_caif_close(int fd); 00047 00048 alp_status_t alp_caif_ioctl(int fd, char* cmd, char* param); 00049 00050 alp_status_t alp_caif_write(int fd, uint8_t* buffer, uint32_t bufferSize); 00051 alp_status_t alp_caif_read(int fd, uint8_t* buffer, uint32_t bufferSize); 00052 00053 alp_status_t alp_caif_register_callback(int fd, AlpCaifCallbackProc callbackP, void* userData); 00054 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif // __cplusplus 00059 00060 00061 #endif // ALP_CAIF_H_
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.