Atmel Software Framework

btypes.h File Reference

Macros

#define BD_ADDR_LENGTH   6
 
#define BD_LINKKEY_LENGTH   16
 
#define BD_NAME_LENGTH   248
 
#define BTYPES_GET_LSB_UINT16(p)   ( ((uint16)*(p)) + (((uint16)*(p+1))<<8) )
 
#define BTYPES_GET_LSB_UINT32(p)   ( ((uint32)*(p)) + (((uint32)*(p+1))<<8) + (((uint32)*(p+2))<<16) + (((uint32)*(p+3))<<24) )
 
#define BTYPES_GET_MSB_UINT16(p)   ( (((uint16)*(p))<<8) + ((uint16)*(p+1)) )
 
#define BTYPES_GET_MSB_UINT32(p)   ( (((uint32)*(p))<<24) + (((uint32)*(p+1))<<16) + (((uint32)*(p+2))<<8) + ((uint32)*(p+3)) )
 
#define BTYPES_SET_LSB_UINT16(p, v)   p[0] = (uint8)v; p[1] = (uint8)(v>>8)
 
#define BTYPES_SET_MSB_UINT16(p, v)   p[0] = (uint8)(v>>8); p[1] = (uint8)(v)
 
#define FALSE   (unsigned char) 0
 
#define FILE_REV_LENGTH   8
 
#define MAYBE   (unsigned char) 2
 
#define NULL   0
 
#define PIN_CODE_MAX   (16+1)
 
#define TRUE   (unsigned char) 1
 

Typedefs

typedef unsigned char bitfield
 
typedef unsigned char boolean
 
typedef short int16
 
typedef long int32
 
typedef signed char int8
 
typedef uint8 TBdAddr [BD_ADDR_LENGTH]
 
typedef uint8 TBdName [BD_NAME_LENGTH]
 
typedef uint8 TBStatus
 
typedef uint8 TChar
 
typedef uint8 TCharSet
 
typedef uint16 TDeviceClass
 
typedef uint8 TFileRevision [FILE_REV_LENGTH]
 
typedef uint8 TFirst [1]
 
typedef uint16 THandle
 
typedef uint16 TId
 
typedef uint8 TLinkKey [BD_LINKKEY_LENGTH]
 
typedef uint8 TPort
 
typedef uint16 TServiceClass
 
typedef uint32 TServiceId
 
typedef uint8TString
 
typedef uint8 TTristate
 
typedef unsigned short uint16
 
typedef unsigned long uint32
 
typedef unsigned char uint8
 

Enumerations

enum  DeviceClassEnum {
  DEVICE_CLASS_ALL = 0xFFFF,
  DEVICE_CLASS_COMPUTER = 0x0001,
  DEVICE_CLASS_PHONE = 0x0002,
  DEVICE_CLASS_LAN = 0x0004,
  DEVICE_CLASS_AUDIO_VIDEO = 0x0008,
  DEVICE_CLASS_PERIPHERAL = 0x0010,
  DEVICE_CLASS_IMAGING = 0x0020,
  DEVICE_CLASS_WEARABLE = 0x0040,
  DEVICE_CLASS_TOY = 0x0080,
  DEVICE_CLASS_MEDICAL = 0x0100
}
 
enum  ServiceClassEnum {
  SERVICE_CLASS_ALL = 0xFFFF,
  SERVICE_CLASS_POSITIONING = 0x0100,
  SERVICE_CLASS_NETWORKING = 0x0200,
  SERVICE_CLASS_RENDERING = 0x0400,
  SERVICE_CLASS_CAPTURING = 0x0800,
  SERVICE_CLASS_OBJECT_TRANSFER = 0x1000,
  SERVICE_CLASS_AUDIO = 0x2000,
  SERVICE_CLASS_TELEPHONY = 0x4000,
  SERVICE_CLASS_INFOSERVER = 0x8000
}
 
enum  TBStatusEnum {
  BSTATUS_OK = 0x00,
  BSTATUS_BUSY,
  BSTATUS_REMOTE_ERROR,
  BSTATUS_TIMEOUT,
  BSTATUS_NOT_CONNECTED,
  BSTATUS_NOT_SUPPORTED,
  BSTATUS_NOT_AVAILABLE,
  BSTATUS_LOCKED,
  BSTATUS_INFO_OVERFLOW = 0x80,
  BSTATUS_INFO_CONTINUE,
  BSTATUS_INFO_SETUP,
  BSTATUS_INFO_CREATED,
  BSTATUS_ERROR_OS = 0xF0,
  BSTATUS_ERROR_PARAM,
  BSTATUS_ERROR_MEMORY,
  BSTATUS_ERROR_SOLID_MEMORY,
  BSTATUS_ERROR = 0xFF
}
 
enum  TCharSetEnum {
  CHAR_SET_UNKNOWN = 0x00,
  CHAR_SET_GSM = 0x01,
  CHAR_SET_UCS2 = 0x02,
  CHAR_SET_UTF8 = 0x03
}
 
enum  TServiceIdEnum {
  SERVICE_ID_ALL = 0xFFFFFFFF,
  SERVICE_ID_UNKNOWN = 0x00000000,
  SERVICE_ID_SPP = 0x00000001,
  SERVICE_ID_HEADSET = 0x00000002,
  SERVICE_ID_HEADSET_AG = 0x00000004,
  SERVICE_ID_HANDSFREE = 0x00000008,
  SERVICE_ID_HANDSFREE_AG = 0x00000010,
  SERVICE_ID_OBEX = 0x00000020,
  SERVICE_ID_OP_CLIENT = 0x00000040,
  SERVICE_ID_OP_SERVER = 0x00000080,
  SERVICE_ID_FT_CLIENT = 0x00000100,
  SERVICE_ID_FT_SERVER = 0x00000200,
  SERVICE_ID_SYNC_CLIENT = 0x00000400,
  SERVICE_ID_SYNC_SERVER = 0x00000800,
  SERVICE_ID_SYNCML_CLIENT = 0x00001000,
  SERVICE_ID_SYNCML_SERVER = 0x00002000,
  SERVICE_ID_PBAP_CLIENT = 0x00004000,
  SERVICE_ID_PBAP_SERVER = 0x00008000,
  SERVICE_ID_AVRCP_TARGET = 0x00010000,
  SERVICE_ID_AVRCP_CONTROLLER = 0x00020000,
  SERVICE_ID_A2DP_SOURCE = 0x00040000,
  SERVICE_ID_A2DP_SINK = 0x00080000,
  SERVICE_ID_DUN_GW = 0x00100000,
  SERVICE_ID_DUN_DT = 0x00200000
}
 

#define BD_ADDR_LENGTH   6
#define BD_LINKKEY_LENGTH   16
#define BD_NAME_LENGTH   248
#define BTYPES_GET_LSB_UINT16 (   p)    ( ((uint16)*(p)) + (((uint16)*(p+1))<<8) )
#define BTYPES_GET_LSB_UINT32 (   p)    ( ((uint32)*(p)) + (((uint32)*(p+1))<<8) + (((uint32)*(p+2))<<16) + (((uint32)*(p+3))<<24) )
#define BTYPES_GET_MSB_UINT16 (   p)    ( (((uint16)*(p))<<8) + ((uint16)*(p+1)) )
#define BTYPES_GET_MSB_UINT32 (   p)    ( (((uint32)*(p))<<24) + (((uint32)*(p+1))<<16) + (((uint32)*(p+2))<<8) + ((uint32)*(p+3)) )
#define BTYPES_SET_LSB_UINT16 (   p,
 
)    p[0] = (uint8)v; p[1] = (uint8)(v>>8)
#define BTYPES_SET_MSB_UINT16 (   p,
 
)    p[0] = (uint8)(v>>8); p[1] = (uint8)(v)
#define FALSE   (unsigned char) 0
#define FILE_REV_LENGTH   8
#define MAYBE   (unsigned char) 2
#define NULL   0
#define PIN_CODE_MAX   (16+1)
#define TRUE   (unsigned char) 1

typedef unsigned char bitfield
typedef unsigned char boolean
typedef short int16
typedef long int32
typedef signed char int8
typedef uint8 TBdAddr[BD_ADDR_LENGTH]
typedef uint8 TBdName[BD_NAME_LENGTH]
typedef uint8 TBStatus
typedef uint8 TChar
typedef uint8 TCharSet
typedef uint8 TFileRevision[FILE_REV_LENGTH]
typedef uint8 TFirst[1]
typedef uint16 THandle
typedef uint16 TId
typedef uint8 TLinkKey[BD_LINKKEY_LENGTH]
typedef uint8 TPort
typedef uint32 TServiceId
typedef uint8* TString
typedef uint8 TTristate
typedef unsigned short uint16
typedef unsigned long uint32
typedef unsigned char uint8

Enumerator
DEVICE_CLASS_ALL 
DEVICE_CLASS_COMPUTER 
DEVICE_CLASS_PHONE 
DEVICE_CLASS_LAN 
DEVICE_CLASS_AUDIO_VIDEO 
DEVICE_CLASS_PERIPHERAL 
DEVICE_CLASS_IMAGING 
DEVICE_CLASS_WEARABLE 
DEVICE_CLASS_TOY 
DEVICE_CLASS_MEDICAL 
Enumerator
SERVICE_CLASS_ALL 
SERVICE_CLASS_POSITIONING 
SERVICE_CLASS_NETWORKING 
SERVICE_CLASS_RENDERING 
SERVICE_CLASS_CAPTURING 
SERVICE_CLASS_OBJECT_TRANSFER 
SERVICE_CLASS_AUDIO 
SERVICE_CLASS_TELEPHONY 
SERVICE_CLASS_INFOSERVER 
Enumerator
BSTATUS_OK 
BSTATUS_BUSY 
BSTATUS_REMOTE_ERROR 
BSTATUS_TIMEOUT 
BSTATUS_NOT_CONNECTED 
BSTATUS_NOT_SUPPORTED 
BSTATUS_NOT_AVAILABLE 
BSTATUS_LOCKED 
BSTATUS_INFO_OVERFLOW 
BSTATUS_INFO_CONTINUE 
BSTATUS_INFO_SETUP 
BSTATUS_INFO_CREATED 
BSTATUS_ERROR_OS 
BSTATUS_ERROR_PARAM 
BSTATUS_ERROR_MEMORY 
BSTATUS_ERROR_SOLID_MEMORY 
BSTATUS_ERROR 
Enumerator
CHAR_SET_UNKNOWN 
CHAR_SET_GSM 
CHAR_SET_UCS2 
CHAR_SET_UTF8 
Enumerator
SERVICE_ID_ALL 
SERVICE_ID_UNKNOWN 
SERVICE_ID_SPP 
SERVICE_ID_HEADSET 
SERVICE_ID_HEADSET_AG 
SERVICE_ID_HANDSFREE 
SERVICE_ID_HANDSFREE_AG 
SERVICE_ID_OBEX 
SERVICE_ID_OP_CLIENT 
SERVICE_ID_OP_SERVER 
SERVICE_ID_FT_CLIENT 
SERVICE_ID_FT_SERVER 
SERVICE_ID_SYNC_CLIENT 
SERVICE_ID_SYNC_SERVER 
SERVICE_ID_SYNCML_CLIENT 
SERVICE_ID_SYNCML_SERVER 
SERVICE_ID_PBAP_CLIENT 
SERVICE_ID_PBAP_SERVER 
SERVICE_ID_AVRCP_TARGET 
SERVICE_ID_AVRCP_CONTROLLER 
SERVICE_ID_A2DP_SOURCE 
SERVICE_ID_A2DP_SINK 
SERVICE_ID_DUN_GW 
SERVICE_ID_DUN_DT