⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mfw_bt.h

📁 GSM手机设计软件代码
💻 H
📖 第 1 页 / 共 4 页
字号:
} T_MFW_BT_SERVICE_SEARCH_CNF;

/* declaration data search confirm */
typedef struct
{
  T_MFW_BT_RESULT_BT result;
} T_MFW_BT_DEVICE_SEARCH_CNF;


/* declaration data service indication */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
  T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
  T_MFW_BT_SERVICE_NAME service_name[MFW_BT_SERVICE_NAME_MAX_LEN];
} T_MFW_BT_SERVICE_IND;

/* declaration data device indication */
typedef struct
{
  T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
  T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
  U32 num_services;
  U32 services;
} T_MFW_BT_DEVICE_IND;

/* declaration data profile confirm */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_RESULT_BT result_bd;
  T_MFW_BT_ACTION action;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_OPP_SERV_MODE mfw_opp_mode;
  T_MFW_BT_SYNC_SERV_MODE mfw_sync_mode;
  T_MFW_BT_SYNC_AUTH_MODE mfw_syn_aut_mode;
} T_MFW_BT_PROFILE_CNF;

typedef struct
{
  T_MFW_BT_SERVICE_TYPE profile;
} T_MFW_BT_PROFILE_CREATE_CNF;

typedef struct
{
  T_MFW_BT_SERVICE_TYPE profile;
} T_MFW_BT_PROFILE_DELETE_CNF;

typedef struct
{
  U8 id;
  T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_HSG_NAME hsg_name[MFW_BT_HSG_NAME_MAX_LEN];
  T_MFW_BT_PRIORITY priority;
}T_MFW_BT_DEFAULT_DEV;

typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_ERROR_CAUSE cause;
}T_MFW_BT_REST_CONFIG;

typedef struct
{
  T_MFW_BT_BD_ADDR rem_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_BD_NAME rem_bd_name[MFW_BT_NAME_MAX_LEN];
  T_MFW_BT_PAIRED_RESULT pair_res;
}T_MFW_BT_DEV_PAIR_IND;

typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_CALL_STATUS call_state;
} T_MFW_BT_CALL_STATUS_DUN_FAX;

/* structures for list with addresses and names of desired device(service id) - dynamicly */
typedef struct T_MFW_BT_SERVICE_ID_TAG
{
  struct T_MFW_BT_SERVICE_ID_TAG *next; /* next block of bluetooth device */
  T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
  T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
  T_MFW_BT_SERVICE_NAME service_name[MFW_BT_SERVICE_NAME_MAX_LEN];
} T_MFW_BT_SERVICE_ID;

typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SERVICE_ID *device_id;
} T_MFW_BT_SERVICE_LST;
/* structure for pointer to list of found devices */
typedef struct
{
  T_MFW_BT_SERVICE_LST *list_ptr;
} T_MFW_BT_SERVICE_LST_P;

/* structures for list with address and names of found services of a device - dynamicly */
typedef struct T_MFW_BT_DEVICE_ID_TAG
{
  struct T_MFW_BT_DEVICE_ID_TAG *next; /* next block of bluetooth device */
  T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
  T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
  U32 num_services;
  U32 services;
} T_MFW_BT_DEVICE_ID;

typedef struct
{
  T_MFW_BT_DEVICE_ID *device_id;
} T_MFW_BT_DEVICE_LST;
/* structure for pointer to list of found devices and their services */
typedef struct
{
  T_MFW_BT_DEVICE_LST *list_ptr;
} T_MFW_BT_DEVICE_LST_P;

/* structure of list of paired devices */
typedef struct
{
  U8 count;
  T_MFW_BT_BD_ADDR paired_bd_addr[MAX_MFW_PAIRED_ADDR][MFW_BT_ADDR_MAX_LEN];
} T_MFW_BT_DEV_PAIR_LIST;

/* structure of list of authorization database devices */
typedef struct
{
  T_MFW_BT_AUTHORIZATION_MASK mask_authorization;
  T_MFW_BT_BD_ADDR remote_bd_addr[MFW_BT_ADDR_MAX_LEN];
} T_MFW_BT_AUTHORIZATION_ELEMENT;


typedef struct
{
  U8 count;
  T_MFW_BT_AUTHORIZATION_ELEMENT auth_devices[MAX_MFW_AUTHORIZ_ADDR];
} T_MFW_BT_AUTHORIZATION_LIST;

/* an sync object store list */
typedef struct mfw_bt_object_store_list_struct
{
  struct mfw_bt_object_store_list_struct *next_object;  /* pointer to next object */
  T_MFW_BT_SYN_OBJECT_STORE object_store;         /* name of the object store */
  /* usually this is where the char array for the object store name can be found */
} T_MFW_BT_SYN_OBJECT_STORE_ITEM;

/* the list is just a pointer to the first item */
typedef T_MFW_BT_SYN_OBJECT_STORE_ITEM * T_MFW_BT_SYN_OBJECT_STORE_LIST;

/* structure syn object id */
typedef struct
{
  U16 mfw_object_size;
  char * mfw_location;
} T_MFW_BT_SYNC_OBJECT_ID;

/* structure for response of synchronization operation */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_ERROR_CAUSE mfw_error_state;
  T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_BD_NAME mfw_client_name[MFW_BT_NAME_MAX_LEN];
} T_MFW_BT_SRV_SYNC_CNF;

/* structure for request authentication password */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_BD_NAME mfw_client_name[MFW_BT_NAME_MAX_LEN];
} T_MFW_BT_SRV_SYNC_AUTH_IND;

/* structure for request pull object from server */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
} T_MFW_BT_SRV_SYNC_PULL_IND;

/* structure for request push object to server */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
} T_MFW_BT_SRV_SYNC_PUSH_IND;


/* structure for confirm object push to server */
typedef struct
{
  T_MFW_BT_SERVICE_TYPE service;
  T_MFW_BT_SUBTYPE_DEV subtype;
  T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_SYNC_OBJECT mfw_object;
  T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
} T_MFW_BT_SRV_SYNC_PUSH_CNF;

/* BT CTRL events */
typedef struct
{
  BOOL                     success;                  /*<  0:  1> BTCTRL success                                     */
} T_MFW_BT_CHNG_LOCAL_NAME;

typedef struct
{
  BOOL                     success;                  /*<  0:  1> BTCTRL success                                     */
  T_MFW_BT_BD_NAME         bd_name[MFW_BT_NAME_MAX_LEN]; /*<  1:248> Bluetooth device name                              */
} T_MFW_BT_READ_LOCAL_NAME;

typedef struct
{
  BOOL                     success;                  /*<  0:  1> BTCTRL success                                     */
  T_MFW_BT_BD_ADDR         bd_addr[MFW_BT_ADDR_MAX_LEN]; /*<  1:  6> Bluetooth device address                           */
  T_MFW_DEVICE_CLASS       cod[MFW_BT_DEVICE_CLASS_LEN]; /*<  7:  3> Bluetooth class of device                          */
  T_MFW_BT_BD_NAME         bd_name[MFW_BT_NAME_MAX_LEN]; /*< 10:248> Bluetooth device name                              */
} T_MFW_BT_REMOTE_DEV_INFO_RES;

typedef struct
{
  BOOL                      success;                  /*<  0:  1> BTCTRL success                                     */
  T_MFW_BT_CONNECTABLE_MODE mode;                     /*<  1:  4> Conn/Disc Mode                                     */
  ULONG                     scan_interval;            /*<  5:  4> Scan Interval                                      */
  ULONG                     scan_window;              /*<  9:  4> Scan Window                                        */
} T_MFW_BT_CHNG_CONNECTABLE_MODE;

typedef struct
{
  BOOL                        success;                  /*<  0:  1> BTCTRL success                                     */
  T_MFW_BT_DISCOVERABLE_MODE  mode;                     /*<  1:  4> Conn/Disc Mode                                     */
  ULONG                       scan_interval;            /*<  5:  4> Scan Interval                                      */
  ULONG                       scan_window;              /*<  9:  4> Scan Window                                        */
} T_MFW_BT_CHNG_DISCOVERABLE_MODE;

typedef struct
{
  BOOL                    success;                  /*<  0:  1> BTCTRL success                                     */
  T_MFW_BT_BD_ADDR        bd_addr[MFW_BT_ADDR_MAX_LEN]; /*<  1:  6> Bluetooth device address                           */
} T_MFW_BT_READ_BD_ADDR;

/*#ifdef PCA_6350*/

typedef enum
{
  MFW_BT_PCA_LINK_MONIT_ON = BTI_PCA_LINK_MONIT_ON,
  MFW_BT_PCA_LINK_MONIT_OFF = BTI_PCA_LINK_MONIT_OFF
} T_MFW_BT_PCA_LINK_EVENT;

typedef enum
{
  MFW_BT_PCA_CALL_MONIT_ON = BTI_PCA_CALL_MONIT_ON,
  MFW_BT_PCA_CALL_MONIT_OFF = BTI_PCA_CALL_MONIT_OFF
} T_MFW_BT_PCA_CALL_EVENT;

/* declaration pca gateway configuration parameter */
typedef struct
{
  T_MFW_BT_PCA_LINK_EVENT link_event;
  T_MFW_BT_PCA_CALL_EVENT call_event;
} T_MFW_BT_PCA_CONFIG;

typedef enum
{
  MFW_BT_PCA_GW_DISABLED = BTI_PCA_GW_DISABLED,
  MFW_BT_PCA_GW_ENABLED  = BTI_PCA_GW_ENABLED
} T_MFW_BT_PCA_GW_STATUS;

typedef enum
{
  MFW_BT_PCA_GW_NOT_CONNECTED = BTI_PCA_GW_NOT_CONNECTED,
  MFW_BT_PCA_GW_CONNECTED     = BTI_PCA_GW_CONNECTED
} T_MFW_BT_PCA_GW_LINK_STATUS;

typedef enum
{
  MFW_BT_PCA_GW_CALL_IN_PROGRESS = BTI_PCA_GW_CALL_IN_PROGRESS,
  MFW_BT_PCA_GW_CALL_ESTABLISHED = BTI_PCA_GW_CALL_ESTABLISHED,
  MFW_BT_PCA_GW_CALL_PAUSED      = BTI_PCA_GW_CALL_PAUSED,
  MFW_BT_PCA_GW_CALL_RESUMED     = BTI_PCA_GW_CALL_RESUMED,
  MFW_BT_PCA_GW_HANGUP_IN_PROGRESS = BTI_PCA_GW_HANGUP_IN_PROGRESS,
  MFW_BT_PCA_GW_CALL_RELEASED    = BTI_PCA_GW_CALL_RELEASED
} T_MFW_BT_PCA_GW_CALL_STATUS;

typedef struct
{
  T_MFW_BT_PCA_GW_STATUS status;
} T_MFW_BT_PCA_GW_STATUS_CFM;

typedef struct
{
  T_MFW_BT_BD_ADDR            bd_addr[MFW_BT_ADDR_MAX_LEN];
  T_MFW_BT_PCA_GW_LINK_STATUS link_status;
} T_MFW_BT_PCA_GW_LINK_MONITORING;

typedef struct
{
  T_MFW_BT_PCA_GW_CALL_STATUS call_status;
} T_MFW_BT_PCA_GW_CALL_MONITORING;

typedef struct
{
  BOOL hangup;
} T_MFW_BT_PCA_GW_HANGUP_CFM;
/*#endif*/ /* PCA_6350 */


/* Cartman added begin */

typedef enum
{
  MFW_BT_HSG_CONNECT_NETWORK_ANSWER_OK = (BTI_HSG_CONNECT_NETWORK_ANSWER_OK),
  MFW_BT_HSG_CONNECT_NETWORK_ANSWER_NOK = (BTI_HSG_CONNECT_NETWORK_ANSWER_NOK)
} T_MFW_BT_HSG_CONNECT_NETWORK_ANSWER;

typedef enum
{
  MFW_BT_HSG_CONNECT_NETWORK_TYPE_AUTOMATIC_DIAL = (BTI_HSG_CONNECT_NETWORK_TYPE_AUTOMATIC_DIAL),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -