SimpleLink API Reference Manual  1.11.1
 All Data Structures Files Functions Variables Typedefs Macros Groups
hci.h File Reference
#include "cc3000_common.h"

Go to the source code of this file.

Macros

#define SPI_HEADER_SIZE   (5)
 
#define SIMPLE_LINK_HCI_CMND_HEADER_SIZE   (4)
 
#define HEADERS_SIZE_CMD   (SPI_HEADER_SIZE + SIMPLE_LINK_HCI_CMND_HEADER_SIZE)
 
#define SIMPLE_LINK_HCI_DATA_CMND_HEADER_SIZE   (5)
 
#define SIMPLE_LINK_HCI_DATA_HEADER_SIZE   (5)
 
#define SIMPLE_LINK_HCI_PATCH_HEADER_SIZE   (2)
 
#define HCI_TYPE_CMND   0x1
 
#define HCI_TYPE_DATA   0x2
 
#define HCI_TYPE_PATCH   0x3
 
#define HCI_TYPE_EVNT   0x4
 
#define HCI_EVENT_PATCHES_DRV_REQ   (1)
 
#define HCI_EVENT_PATCHES_FW_REQ   (2)
 
#define HCI_EVENT_PATCHES_BOOTLOAD_REQ   (3)
 
#define HCI_CMND_WLAN_BASE   (0x0000)
 
#define HCI_CMND_WLAN_CONNECT   0x0001
 
#define HCI_CMND_WLAN_DISCONNECT   0x0002
 
#define HCI_CMND_WLAN_IOCTL_SET_SCANPARAM   0x0003
 
#define HCI_CMND_WLAN_IOCTL_SET_CONNECTION_POLICY   0x0004
 
#define HCI_CMND_WLAN_IOCTL_ADD_PROFILE   0x0005
 
#define HCI_CMND_WLAN_IOCTL_DEL_PROFILE   0x0006
 
#define HCI_CMND_WLAN_IOCTL_GET_SCAN_RESULTS   0x0007
 
#define HCI_CMND_EVENT_MASK   0x0008
 
#define HCI_CMND_WLAN_IOCTL_STATUSGET   0x0009
 
#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_START   0x000A
 
#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_STOP   0x000B
 
#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_SET_PREFIX   0x000C
 
#define HCI_CMND_WLAN_CONFIGURE_PATCH   0x000D
 
#define HCI_CMND_SOCKET_BASE   0x1000
 
#define HCI_CMND_SOCKET   0x1001
 
#define HCI_CMND_BIND   0x1002
 
#define HCI_CMND_RECV   0x1004
 
#define HCI_CMND_ACCEPT   0x1005
 
#define HCI_CMND_LISTEN   0x1006
 
#define HCI_CMND_CONNECT   0x1007
 
#define HCI_CMND_BSD_SELECT   0x1008
 
#define HCI_CMND_SETSOCKOPT   0x1009
 
#define HCI_CMND_GETSOCKOPT   0x100A
 
#define HCI_CMND_CLOSE_SOCKET   0x100B
 
#define HCI_CMND_RECVFROM   0x100D
 
#define HCI_CMND_GETHOSTNAME   0x1010
 
#define HCI_CMND_MDNS_ADVERTISE   0x1011
 
#define HCI_DATA_BASE   0x80
 
#define HCI_CMND_SEND   (0x01 + HCI_DATA_BASE)
 
#define HCI_CMND_SENDTO   (0x03 + HCI_DATA_BASE)
 
#define HCI_DATA_BSD_RECVFROM   (0x04 + HCI_DATA_BASE)
 
#define HCI_DATA_BSD_RECV   (0x05 + HCI_DATA_BASE)
 
#define HCI_CMND_NVMEM_CBASE   (0x0200)
 
#define HCI_CMND_NVMEM_CREATE_ENTRY   (0x0203)
 
#define HCI_CMND_NVMEM_SWAP_ENTRY   (0x0205)
 
#define HCI_CMND_NVMEM_READ   (0x0201)
 
#define HCI_CMND_NVMEM_WRITE   (0x0090)
 
#define HCI_CMND_NVMEM_WRITE_PATCH   (0x0204)
 
#define HCI_CMND_READ_SP_VERSION   (0x0207)
 
#define HCI_CMND_READ_BUFFER_SIZE   0x400B
 
#define HCI_CMND_SIMPLE_LINK_START   0x4000
 
#define HCI_CMND_NETAPP_BASE   0x2000
 
#define HCI_NETAPP_DHCP   (0x0001 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_PING_SEND   (0x0002 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_PING_REPORT   (0x0003 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_PING_STOP   (0x0004 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_IPCONFIG   (0x0005 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_ARP_FLUSH   (0x0006 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_SET_DEBUG_LEVEL   (0x0008 + HCI_CMND_NETAPP_BASE)
 
#define HCI_NETAPP_SET_TIMERS   (0x0009 + HCI_CMND_NETAPP_BASE)
 
#define HCI_EVNT_WLAN_BASE   0x0000
 
#define HCI_EVNT_WLAN_CONNECT   0x0001
 
#define HCI_EVNT_WLAN_DISCONNECT   0x0002
 
#define HCI_EVNT_WLAN_IOCTL_ADD_PROFILE   0x0005
 
#define HCI_EVNT_SOCKET   HCI_CMND_SOCKET
 
#define HCI_EVNT_BIND   HCI_CMND_BIND
 
#define HCI_EVNT_RECV   HCI_CMND_RECV
 
#define HCI_EVNT_ACCEPT   HCI_CMND_ACCEPT
 
#define HCI_EVNT_LISTEN   HCI_CMND_LISTEN
 
#define HCI_EVNT_CONNECT   HCI_CMND_CONNECT
 
#define HCI_EVNT_SELECT   HCI_CMND_BSD_SELECT
 
#define HCI_EVNT_CLOSE_SOCKET   HCI_CMND_CLOSE_SOCKET
 
#define HCI_EVNT_RECVFROM   HCI_CMND_RECVFROM
 
#define HCI_EVNT_SETSOCKOPT   HCI_CMND_SETSOCKOPT
 
#define HCI_EVNT_GETSOCKOPT   HCI_CMND_GETSOCKOPT
 
#define HCI_EVNT_BSD_GETHOSTBYNAME   HCI_CMND_GETHOSTNAME
 
#define HCI_EVNT_MDNS_ADVERTISE   HCI_CMND_MDNS_ADVERTISE
 
#define HCI_EVNT_SEND   0x1003
 
#define HCI_EVNT_WRITE   0x100E
 
#define HCI_EVNT_SENDTO   0x100F
 
#define HCI_EVNT_PATCHES_REQ   0x1000
 
#define HCI_EVNT_UNSOL_BASE   0x4000
 
#define HCI_EVNT_WLAN_UNSOL_BASE   (0x8000)
 
#define HCI_EVNT_WLAN_UNSOL_CONNECT   (0x0001 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_UNSOL_DISCONNECT   (0x0002 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_UNSOL_INIT   (0x0004 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_TX_COMPLETE   (0x0008 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_UNSOL_DHCP   (0x0010 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_ASYNC_PING_REPORT   (0x0040 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE   (0x0080 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_WLAN_KEEPALIVE   (0x0200 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_BSD_TCP_CLOSE_WAIT   (0x0800 + HCI_EVNT_WLAN_UNSOL_BASE)
 
#define HCI_EVNT_DATA_UNSOL_FREE_BUFF   0x4100
 
#define HCI_EVNT_NVMEM_CREATE_ENTRY   HCI_CMND_NVMEM_CREATE_ENTRY
 
#define HCI_EVNT_NVMEM_SWAP_ENTRY   HCI_CMND_NVMEM_SWAP_ENTRY
 
#define HCI_EVNT_NVMEM_READ   HCI_CMND_NVMEM_READ
 
#define HCI_EVNT_NVMEM_WRITE   (0x0202)
 
#define HCI_EVNT_READ_SP_VERSION   HCI_CMND_READ_SP_VERSION
 
#define HCI_EVNT_INPROGRESS   0xFFFF
 
#define HCI_DATA_RECVFROM   0x84
 
#define HCI_DATA_RECV   0x85
 
#define HCI_DATA_NVMEM   0x91
 
#define HCI_EVENT_CC3000_CAN_SHUT_DOWN   0x99
 
#define HCI_DATA_HEADER_SIZE   (5)
 
#define HCI_EVENT_HEADER_SIZE   (5)
 
#define HCI_DATA_CMD_HEADER_SIZE   (5)
 
#define HCI_PATCH_HEADER_SIZE   (6)
 
#define HCI_PACKET_TYPE_OFFSET   (0)
 
#define HCI_PACKET_ARGSIZE_OFFSET   (2)
 
#define HCI_PACKET_LENGTH_OFFSET   (3)
 
#define HCI_EVENT_OPCODE_OFFSET   (1)
 
#define HCI_EVENT_LENGTH_OFFSET   (3)
 
#define HCI_EVENT_STATUS_OFFSET   (4)
 
#define HCI_DATA_LENGTH_OFFSET   (3)
 

Functions

unsigned short hci_command_send (unsigned short usOpcode, unsigned char *ucArgs, unsigned char ucArgsLength)
 Initiate an HCI command.
 
long hci_data_send (unsigned char ucOpcode, unsigned char *ucArgs, unsigned short usArgsLength, unsigned short usDataLength, const unsigned char *ucTail, unsigned short usTailLength)
 Initiate an HCI data write operation.
 
void hci_data_command_send (unsigned short usOpcode, unsigned char *pucBuff, unsigned char ucArgsLength, unsigned short ucDataLength)
 Prepare HCI header and initiate an HCI data write operation.
 
void hci_patch_send (unsigned char ucOpcode, unsigned char *pucBuff, char *patch, unsigned short usDataLength)
 Prepare HCI header and initiate an HCI patch write operation.
 

Macro Definition Documentation

#define SPI_HEADER_SIZE   (5)

Definition at line 51 of file hci.h.

#define SIMPLE_LINK_HCI_CMND_HEADER_SIZE   (4)

Definition at line 52 of file hci.h.

#define HEADERS_SIZE_CMD   (SPI_HEADER_SIZE + SIMPLE_LINK_HCI_CMND_HEADER_SIZE)

Definition at line 53 of file hci.h.

#define SIMPLE_LINK_HCI_DATA_CMND_HEADER_SIZE   (5)

Definition at line 54 of file hci.h.

#define SIMPLE_LINK_HCI_DATA_HEADER_SIZE   (5)

Definition at line 55 of file hci.h.

#define SIMPLE_LINK_HCI_PATCH_HEADER_SIZE   (2)

Definition at line 56 of file hci.h.

#define HCI_TYPE_CMND   0x1

Definition at line 64 of file hci.h.

#define HCI_TYPE_DATA   0x2

Definition at line 65 of file hci.h.

#define HCI_TYPE_PATCH   0x3

Definition at line 66 of file hci.h.

#define HCI_TYPE_EVNT   0x4

Definition at line 67 of file hci.h.

#define HCI_EVENT_PATCHES_DRV_REQ   (1)

Definition at line 70 of file hci.h.

#define HCI_EVENT_PATCHES_FW_REQ   (2)

Definition at line 71 of file hci.h.

#define HCI_EVENT_PATCHES_BOOTLOAD_REQ   (3)

Definition at line 72 of file hci.h.

#define HCI_CMND_WLAN_BASE   (0x0000)

Definition at line 75 of file hci.h.

#define HCI_CMND_WLAN_CONNECT   0x0001

Definition at line 76 of file hci.h.

#define HCI_CMND_WLAN_DISCONNECT   0x0002

Definition at line 77 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_SET_SCANPARAM   0x0003

Definition at line 78 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_SET_CONNECTION_POLICY   0x0004

Definition at line 79 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_ADD_PROFILE   0x0005

Definition at line 80 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_DEL_PROFILE   0x0006

Definition at line 81 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_GET_SCAN_RESULTS   0x0007

Definition at line 82 of file hci.h.

#define HCI_CMND_EVENT_MASK   0x0008

Definition at line 83 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_STATUSGET   0x0009

Definition at line 84 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_START   0x000A

Definition at line 85 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_STOP   0x000B

Definition at line 86 of file hci.h.

#define HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_SET_PREFIX   0x000C

Definition at line 87 of file hci.h.

#define HCI_CMND_WLAN_CONFIGURE_PATCH   0x000D

Definition at line 88 of file hci.h.

#define HCI_CMND_SOCKET_BASE   0x1000

Definition at line 91 of file hci.h.

#define HCI_CMND_SOCKET   0x1001

Definition at line 92 of file hci.h.

#define HCI_CMND_BIND   0x1002

Definition at line 93 of file hci.h.

#define HCI_CMND_RECV   0x1004

Definition at line 94 of file hci.h.

#define HCI_CMND_ACCEPT   0x1005

Definition at line 95 of file hci.h.

#define HCI_CMND_LISTEN   0x1006

Definition at line 96 of file hci.h.

#define HCI_CMND_CONNECT   0x1007

Definition at line 97 of file hci.h.

#define HCI_CMND_BSD_SELECT   0x1008

Definition at line 98 of file hci.h.

#define HCI_CMND_SETSOCKOPT   0x1009

Definition at line 99 of file hci.h.

#define HCI_CMND_GETSOCKOPT   0x100A

Definition at line 100 of file hci.h.

#define HCI_CMND_CLOSE_SOCKET   0x100B

Definition at line 101 of file hci.h.

#define HCI_CMND_RECVFROM   0x100D

Definition at line 102 of file hci.h.

#define HCI_CMND_GETHOSTNAME   0x1010

Definition at line 103 of file hci.h.

#define HCI_CMND_MDNS_ADVERTISE   0x1011

Definition at line 104 of file hci.h.

#define HCI_DATA_BASE   0x80

Definition at line 107 of file hci.h.

#define HCI_CMND_SEND   (0x01 + HCI_DATA_BASE)

Definition at line 109 of file hci.h.

#define HCI_CMND_SENDTO   (0x03 + HCI_DATA_BASE)

Definition at line 110 of file hci.h.

#define HCI_DATA_BSD_RECVFROM   (0x04 + HCI_DATA_BASE)

Definition at line 111 of file hci.h.

#define HCI_DATA_BSD_RECV   (0x05 + HCI_DATA_BASE)

Definition at line 112 of file hci.h.

#define HCI_CMND_NVMEM_CBASE   (0x0200)

Definition at line 115 of file hci.h.

#define HCI_CMND_NVMEM_CREATE_ENTRY   (0x0203)

Definition at line 118 of file hci.h.

#define HCI_CMND_NVMEM_SWAP_ENTRY   (0x0205)

Definition at line 119 of file hci.h.

#define HCI_CMND_NVMEM_READ   (0x0201)

Definition at line 120 of file hci.h.

#define HCI_CMND_NVMEM_WRITE   (0x0090)

Definition at line 121 of file hci.h.

#define HCI_CMND_NVMEM_WRITE_PATCH   (0x0204)

Definition at line 122 of file hci.h.

#define HCI_CMND_READ_SP_VERSION   (0x0207)

Definition at line 123 of file hci.h.

#define HCI_CMND_READ_BUFFER_SIZE   0x400B

Definition at line 125 of file hci.h.

#define HCI_CMND_SIMPLE_LINK_START   0x4000

Definition at line 126 of file hci.h.

#define HCI_CMND_NETAPP_BASE   0x2000

Definition at line 128 of file hci.h.

#define HCI_NETAPP_DHCP   (0x0001 + HCI_CMND_NETAPP_BASE)

Definition at line 130 of file hci.h.

#define HCI_NETAPP_PING_SEND   (0x0002 + HCI_CMND_NETAPP_BASE)

Definition at line 131 of file hci.h.

#define HCI_NETAPP_PING_REPORT   (0x0003 + HCI_CMND_NETAPP_BASE)

Definition at line 132 of file hci.h.

#define HCI_NETAPP_PING_STOP   (0x0004 + HCI_CMND_NETAPP_BASE)

Definition at line 133 of file hci.h.

#define HCI_NETAPP_IPCONFIG   (0x0005 + HCI_CMND_NETAPP_BASE)

Definition at line 134 of file hci.h.

#define HCI_NETAPP_ARP_FLUSH   (0x0006 + HCI_CMND_NETAPP_BASE)

Definition at line 135 of file hci.h.

#define HCI_NETAPP_SET_DEBUG_LEVEL   (0x0008 + HCI_CMND_NETAPP_BASE)

Definition at line 136 of file hci.h.

#define HCI_NETAPP_SET_TIMERS   (0x0009 + HCI_CMND_NETAPP_BASE)

Definition at line 137 of file hci.h.

#define HCI_EVNT_WLAN_BASE   0x0000

Definition at line 149 of file hci.h.

#define HCI_EVNT_WLAN_CONNECT   0x0001

Definition at line 150 of file hci.h.

#define HCI_EVNT_WLAN_DISCONNECT   0x0002

Definition at line 151 of file hci.h.

#define HCI_EVNT_WLAN_IOCTL_ADD_PROFILE   0x0005

Definition at line 153 of file hci.h.

#define HCI_EVNT_SOCKET   HCI_CMND_SOCKET

Definition at line 157 of file hci.h.

#define HCI_EVNT_BIND   HCI_CMND_BIND

Definition at line 158 of file hci.h.

#define HCI_EVNT_RECV   HCI_CMND_RECV

Definition at line 159 of file hci.h.

#define HCI_EVNT_ACCEPT   HCI_CMND_ACCEPT

Definition at line 160 of file hci.h.

#define HCI_EVNT_LISTEN   HCI_CMND_LISTEN

Definition at line 161 of file hci.h.

#define HCI_EVNT_CONNECT   HCI_CMND_CONNECT

Definition at line 162 of file hci.h.

#define HCI_EVNT_SELECT   HCI_CMND_BSD_SELECT

Definition at line 163 of file hci.h.

#define HCI_EVNT_CLOSE_SOCKET   HCI_CMND_CLOSE_SOCKET

Definition at line 164 of file hci.h.

#define HCI_EVNT_RECVFROM   HCI_CMND_RECVFROM

Definition at line 165 of file hci.h.

#define HCI_EVNT_SETSOCKOPT   HCI_CMND_SETSOCKOPT

Definition at line 166 of file hci.h.

#define HCI_EVNT_GETSOCKOPT   HCI_CMND_GETSOCKOPT

Definition at line 167 of file hci.h.

#define HCI_EVNT_BSD_GETHOSTBYNAME   HCI_CMND_GETHOSTNAME

Definition at line 168 of file hci.h.

#define HCI_EVNT_MDNS_ADVERTISE   HCI_CMND_MDNS_ADVERTISE

Definition at line 169 of file hci.h.

#define HCI_EVNT_SEND   0x1003

Definition at line 171 of file hci.h.

#define HCI_EVNT_WRITE   0x100E

Definition at line 172 of file hci.h.

#define HCI_EVNT_SENDTO   0x100F

Definition at line 173 of file hci.h.

#define HCI_EVNT_PATCHES_REQ   0x1000

Definition at line 175 of file hci.h.

#define HCI_EVNT_UNSOL_BASE   0x4000

Definition at line 177 of file hci.h.

#define HCI_EVNT_WLAN_UNSOL_BASE   (0x8000)

Definition at line 179 of file hci.h.

#define HCI_EVNT_WLAN_UNSOL_CONNECT   (0x0001 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 181 of file hci.h.

#define HCI_EVNT_WLAN_UNSOL_DISCONNECT   (0x0002 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 182 of file hci.h.

#define HCI_EVNT_WLAN_UNSOL_INIT   (0x0004 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 183 of file hci.h.

#define HCI_EVNT_WLAN_TX_COMPLETE   (0x0008 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 184 of file hci.h.

#define HCI_EVNT_WLAN_UNSOL_DHCP   (0x0010 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 185 of file hci.h.

#define HCI_EVNT_WLAN_ASYNC_PING_REPORT   (0x0040 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 186 of file hci.h.

#define HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE   (0x0080 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 187 of file hci.h.

#define HCI_EVNT_WLAN_KEEPALIVE   (0x0200 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 188 of file hci.h.

#define HCI_EVNT_BSD_TCP_CLOSE_WAIT   (0x0800 + HCI_EVNT_WLAN_UNSOL_BASE)

Definition at line 189 of file hci.h.

#define HCI_EVNT_DATA_UNSOL_FREE_BUFF   0x4100

Definition at line 191 of file hci.h.

#define HCI_EVNT_NVMEM_CREATE_ENTRY   HCI_CMND_NVMEM_CREATE_ENTRY

Definition at line 194 of file hci.h.

#define HCI_EVNT_NVMEM_SWAP_ENTRY   HCI_CMND_NVMEM_SWAP_ENTRY

Definition at line 196 of file hci.h.

#define HCI_EVNT_NVMEM_READ   HCI_CMND_NVMEM_READ

Definition at line 198 of file hci.h.

#define HCI_EVNT_NVMEM_WRITE   (0x0202)

Definition at line 199 of file hci.h.

#define HCI_EVNT_READ_SP_VERSION   HCI_CMND_READ_SP_VERSION

Definition at line 201 of file hci.h.

#define HCI_EVNT_INPROGRESS   0xFFFF

Definition at line 204 of file hci.h.

#define HCI_DATA_RECVFROM   0x84

Definition at line 207 of file hci.h.

#define HCI_DATA_RECV   0x85

Definition at line 208 of file hci.h.

#define HCI_DATA_NVMEM   0x91

Definition at line 209 of file hci.h.

#define HCI_EVENT_CC3000_CAN_SHUT_DOWN   0x99

Definition at line 211 of file hci.h.

#define HCI_DATA_HEADER_SIZE   (5)

Definition at line 219 of file hci.h.

#define HCI_EVENT_HEADER_SIZE   (5)

Definition at line 220 of file hci.h.

#define HCI_DATA_CMD_HEADER_SIZE   (5)

Definition at line 221 of file hci.h.

#define HCI_PATCH_HEADER_SIZE   (6)

Definition at line 222 of file hci.h.

#define HCI_PACKET_TYPE_OFFSET   (0)

Definition at line 224 of file hci.h.

#define HCI_PACKET_ARGSIZE_OFFSET   (2)

Definition at line 225 of file hci.h.

#define HCI_PACKET_LENGTH_OFFSET   (3)

Definition at line 226 of file hci.h.

#define HCI_EVENT_OPCODE_OFFSET   (1)

Definition at line 229 of file hci.h.

#define HCI_EVENT_LENGTH_OFFSET   (3)

Definition at line 230 of file hci.h.

#define HCI_EVENT_STATUS_OFFSET   (4)

Definition at line 231 of file hci.h.

#define HCI_DATA_LENGTH_OFFSET   (3)

Definition at line 232 of file hci.h.

Function Documentation

unsigned short hci_command_send ( unsigned short  usOpcode,
unsigned char *  ucArgs,
unsigned char  ucArgsLength 
)

Initiate an HCI command.

hci_command_send

Parameters
usOpcodecommand operation code
pucBuffpointer to the command's arguments buffer
ucArgsLengthlength of the arguments
Returns
none
long hci_data_send ( unsigned char  ucOpcode,
unsigned char *  ucArgs,
unsigned short  usArgsLength,
unsigned short  usDataLength,
const unsigned char *  ucTail,
unsigned short  usTailLength 
)

Initiate an HCI data write operation.

hci_data_send

Parameters
usOpcodecommand operation code
ucArgspointer to the command's arguments buffer
usArgsLengthlength of the arguments
ucTailpointer to the data buffer
usTailLengthbuffer length
Returns
none
void hci_data_command_send ( unsigned short  usOpcode,
unsigned char *  pucBuff,
unsigned char  ucArgsLength,
unsigned short  ucDataLength 
)

Prepare HCI header and initiate an HCI data write operation.

hci_data_command_send

Parameters
usOpcodecommand operation code
pucBuffpointer to the data buffer
ucArgsLengtharguments length
ucDataLengthdata length
Returns
none
void hci_patch_send ( unsigned char  ucOpcode,
unsigned char *  pucBuff,
char *  patch,
unsigned short  usDataLength 
)

Prepare HCI header and initiate an HCI patch write operation.

hci_patch_send

Parameters
usOpcodecommand operation code
pucBuffpointer to the command's arguments buffer
patchpointer to patch content buffer
usDataLengthdata length
Returns
none