Cordio Stack and Cordio Profiles  r2p3-02rel0
Phone Alert Status Profile

Enumerations

enum  {
  PASPC_PASS_AS_HDL_IDX,
  PASPC_PASS_AS_CCC_HDL_IDX,
  PASPC_PASS_RS_HDL_IDX,
  PASPC_PASS_RS_CCC_HDL_IDX,
  PASPC_PASS_RCP_HDL_IDX,
  PASPC_PASS_HDL_LIST_LEN
}
 Phone Alert Status service enumeration of handle indexes of characteristics to be discovered. More...
 

Functions

void PaspcPassDiscover (dmConnId_t connId, uint16_t *pHdlList)
 Perform service and characteristic discovery for Phone Alert Status service. Parameter pHdlList must point to an array of length PASPC_PASS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More...
 
void PaspcPassControl (dmConnId_t connId, uint16_t handle, uint8_t command)
 Send a command to the ringer control point. More...
 
uint8_t PaspcPassValueUpdate (uint16_t *pHdlList, attEvt_t *pMsg)
 Process a value received in an ATT read response, notification, or indication message. Parameter pHdlList must point to an array of length PASPC_PASS_HDL_LIST_LEN. If the attribute handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored. More...
 

Description

Enumeration Type Documentation

anonymous enum

Phone Alert Status service enumeration of handle indexes of characteristics to be discovered.

Enumerator
PASPC_PASS_AS_HDL_IDX 

Alert status.

PASPC_PASS_AS_CCC_HDL_IDX 

Alert status CCC descriptor.

PASPC_PASS_RS_HDL_IDX 

Ringer setting.

PASPC_PASS_RS_CCC_HDL_IDX 

Ringer setting CCC descriptor.

PASPC_PASS_RCP_HDL_IDX 

Ringer control point.

PASPC_PASS_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file paspc_api.h.

37 {
38  PASPC_PASS_AS_HDL_IDX, /*!< \brief Alert status */
39  PASPC_PASS_AS_CCC_HDL_IDX, /*!< \brief Alert status CCC descriptor */
40  PASPC_PASS_RS_HDL_IDX, /*!< \brief Ringer setting */
41  PASPC_PASS_RS_CCC_HDL_IDX, /*!< \brief Ringer setting CCC descriptor */
42  PASPC_PASS_RCP_HDL_IDX, /*!< \brief Ringer control point */
43  PASPC_PASS_HDL_LIST_LEN /*!< \brief Handle list length */
44 };
Alert status.
Definition: paspc_api.h:38
Alert status CCC descriptor.
Definition: paspc_api.h:39
Handle list length.
Definition: paspc_api.h:43
Ringer setting CCC descriptor.
Definition: paspc_api.h:41
Ringer setting.
Definition: paspc_api.h:40
Ringer control point.
Definition: paspc_api.h:42

Function Documentation

void PaspcPassDiscover ( dmConnId_t  connId,
uint16_t pHdlList 
)

Perform service and characteristic discovery for Phone Alert Status service. Parameter pHdlList must point to an array of length PASPC_PASS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList.

Parameters
connIdConnection identifier.
pHdlListCharacteristic handle list.
Returns
None.
void PaspcPassControl ( dmConnId_t  connId,
uint16_t  handle,
uint8_t  command 
)

Send a command to the ringer control point.

Parameters
connIdConnection identifier.
handleAttribute handle.
commandControl point command.
Returns
None.
uint8_t PaspcPassValueUpdate ( uint16_t pHdlList,
attEvt_t pMsg 
)

Process a value received in an ATT read response, notification, or indication message. Parameter pHdlList must point to an array of length PASPC_PASS_HDL_LIST_LEN. If the attribute handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored.

Parameters
pHdlListCharacteristic handle list.
pMsgATT callback message.
Returns
ATT_SUCCESS if handle is found, ATT_ERR_NOT_FOUND otherwise.