Gammu internals  1.38.0
blue_w32.h File Reference
#include <winsock2.h>
#include <pshpack1.h>
Include dependency graph for blue_w32.h:

Go to the source code of this file.

Data Structures

struct  _SOCKADDR_BTH
 

Macros

#define NAP_BIT_OFFSET   (8 * 4)
 
#define SAP_BIT_OFFSET   (0)
 
#define GET_BYTE(num, byte)   (unsigned int)((num >> (8 * byte)) & 0xff)
 
#define NAP_MASK   0xFFFF00000000LL
 
#define SAP_MASK   0x0000FFFFFFFFLL
 
#define GET_NAP(_bth_addr)   ((ULONGLONG) (((_bth_addr) & NAP_MASK) >> NAP_BIT_OFFSET))
 
#define GET_SAP(_bth_addr)   ((ULONGLONG) (((_bth_addr) & SAP_MASK) >> SAP_BIT_OFFSET))
 
#define AF_BTH   32
 
#define BTHPROTO_RFCOMM   0x0003
 

Typedefs

typedef ULONGLONG BTH_ADDR
 
typedef ULONGLONG * PBTH_ADDR
 
typedef struct _SOCKADDR_BTH SOCKADDR_BTH
 
typedef struct _SOCKADDR_BTHPSOCKADDR_BTH
 

Macro Definition Documentation

§ AF_BTH

#define AF_BTH   32

Definition at line 30 of file blue_w32.h.

§ BTHPROTO_RFCOMM

#define BTHPROTO_RFCOMM   0x0003

Definition at line 40 of file blue_w32.h.

§ GET_BYTE

#define GET_BYTE (   num,
  byte 
)    (unsigned int)((num >> (8 * byte)) & 0xff)

Definition at line 13 of file blue_w32.h.

§ GET_NAP

#define GET_NAP (   _bth_addr)    ((ULONGLONG) (((_bth_addr) & NAP_MASK) >> NAP_BIT_OFFSET))

Definition at line 25 of file blue_w32.h.

§ GET_SAP

#define GET_SAP (   _bth_addr)    ((ULONGLONG) (((_bth_addr) & SAP_MASK) >> SAP_BIT_OFFSET))

Definition at line 26 of file blue_w32.h.

§ NAP_BIT_OFFSET

#define NAP_BIT_OFFSET   (8 * 4)

Definition at line 11 of file blue_w32.h.

§ NAP_MASK

#define NAP_MASK   0xFFFF00000000LL

Definition at line 22 of file blue_w32.h.

§ SAP_BIT_OFFSET

#define SAP_BIT_OFFSET   (0)

Definition at line 12 of file blue_w32.h.

§ SAP_MASK

#define SAP_MASK   0x0000FFFFFFFFLL

Definition at line 23 of file blue_w32.h.

Typedef Documentation

§ BTH_ADDR

typedef ULONGLONG BTH_ADDR

Definition at line 9 of file blue_w32.h.

§ PBTH_ADDR

typedef ULONGLONG * PBTH_ADDR

Definition at line 9 of file blue_w32.h.

§ PSOCKADDR_BTH

typedef struct _SOCKADDR_BTH * PSOCKADDR_BTH

§ SOCKADDR_BTH

typedef struct _SOCKADDR_BTH SOCKADDR_BTH