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

📄 app_sdp.h

📁 Bluetooth HID emulation
💻 H
字号:
/* Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006 */
/* Part of BlueLab 3.6.2-release */
#ifndef SDP_PARSE_H
#define SDP_PARSE_H

#include <csrtypes.h>

/*
    types used when specifying what part of an SDP record is of interest
*/

typedef enum
{
    SDP_TYPE_NIL,
    SDP_TYPE_UINT,
    SDP_TYPE_SINT,
    SDP_TYPE_UUID,
    SDP_TYPE_STR,
    SDP_TYPE_BOOL,
    SDP_TYPE_URL = 8
} appSdpType;



/*
    SdpGetData
    returns a uint32 containing the data found at the current position. 
    Data can actually be of size 1,2 or 4 bytes.  
*/

uint32 appSdpGetData(uint8 *record);

/*
    SdpSetData
    sets the data at the current position to the value specified.  
    The size of data is taken from the descriptor that already exists so this 
    function can be used for filling in template records or queries.
*/

void appSdpSetData(uint8 * record,uint32 data) ;

/*
    sdkSkipElement
    skips over the current element, returning a pointer to the next element
*/

uint8 *appSdpSkipElement(uint8 *record);

/*
    SdpFindElement
    searches through the supplied record until either the specified type is found 
    or the end of the record is encountered.
    Returns pointer to the element or NULL if unsuccessful
*/

uint8 *appSdpFindElement(appSdpType desc,uint8 *record,uint8 *endptr);

appSdpResult appSdpHandleMandatory(appDeviceTaskData *theDevice, uint8 *ptr, uint8 *end_ptr);
appSdpResult appSdpHandleOptional(appDeviceTaskData *theDevice, uint8 *ptr, uint8 *end_ptr);

#endif

⌨️ 快捷键说明

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