Programming Manual

i480e&i480e-MD2 Programming Manual
95 / 139
Note
After the HID connection is established, the default protocol mode is
report protocol mode. the module will return this indication when
the protocol mode is updated.
20
HFP AG AT Command Definition
This chapter introduces the HFP (AG Role) relevant AT commands’ definition,
including a brief description of commands’ syntax, responses and examples.
20.1
HFP AG Status
This chapter introduces the defined HFP status.
20.1.1 HFP AG Status
typedef enum
{
aghfp_success, /*!< Success. */
aghfp_fail /*!< Failure. */
} aghfp_lib_status;
20.1.2 HFP AG Connect Status
typedef enum
{
aghfp_connect_success, /*!< Successful connection. */
aghfp_connect_sdp_fail, /*!< Unsuccessful due to a service
search failure.*/
aghfp_connect_slc_failed, /*!< Unsuccessful due to a service
level connection failure. */
aghfp_connect_failed_busy, /*!< Unsuccessful due to service level
connection already established. */
aghfp_connect_failed, /*!< Unsuccessful due to RFCOMM
connection failing to be established.
*/
aghfp_connect_server_channel_not_registered, /*!< Unsuccessful due to
attempt to connect to unallocated
server channel. */
aghfp_connect_timeout, /*!< Unsuccessful due to connection
attempt timing out. */
Barrot Confidential