erez i / cc3000_hostdriver_mbedsocket

Dependents:   cc3000_ping_demo_try_2

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Embed: (wiki syntax)

« Back to documentation index

cc3000_hci Class Reference

cc3000_hci Class Reference

HCI layer. More...

#include <cc3000.h>

Public Member Functions

 cc3000_hci (cc3000_spi &spi)
 Ctor.
 ~cc3000_hci ()
 Dtor.
uint16_t command_send (uint16_t op_code, uint8_t *buffer, uint8_t length)
 Initiate an HCI command.
uint32_t data_send (uint8_t op_code, uint8_t *args, uint16_t arg_length, uint16_t data_length, const uint8_t *tail, uint16_t tail_length)
 Initiate an HCI data write operation.
void data_command_send (uint16_t op_code, uint8_t *buffer, uint8_t arg_length, uint16_t data_length)
 Prepare HCI header and initiate an HCI data write operation.
void patch_send (uint8_t op_code, uint8_t *buffer, uint8_t *patch, uint16_t data_length)
 Prepare HCI header and initiate an HCI patch write operation.

Detailed Description

HCI layer.

Definition at line 1185 of file cc3000.h.


Constructor & Destructor Documentation

cc3000_hci ( cc3000_spi spi )

Ctor.

Parameters:
spiReference to the spi object.
Returns:
none

Definition at line 45 of file cc3000_hci.cpp.

~cc3000_hci (  )

Dtor.

Parameters:
none
Returns:
none

Definition at line 49 of file cc3000_hci.cpp.


Member Function Documentation

uint16_t command_send ( uint16_t  op_code,
uint8_t *  buffer,
uint8_t  length 
)

Initiate an HCI command.

Parameters:
op_codecommand operation code
bufferpointer to the command's arguments buffer
lengthlength of the arguments
Returns:
0

Definition at line 53 of file cc3000_hci.cpp.

void data_command_send ( uint16_t  op_code,
uint8_t *  buffer,
uint8_t  arg_length,
uint16_t  data_length 
)

Prepare HCI header and initiate an HCI data write operation.

Parameters:
op_codecommand operation code
bufferpointer to the data buffer
arg_lengtharguments length
data_lengthdata length
Returns:
none

Definition at line 85 of file cc3000_hci.cpp.

uint32_t data_send ( uint8_t  op_code,
uint8_t *  args,
uint16_t  arg_length,
uint16_t  data_length,
const uint8_t *  tail,
uint16_t  tail_length 
)

Initiate an HCI data write operation.

Parameters:
op_codecommand operation code
argspointer to the command's arguments buffer
arg_lengthlength of the arguments
data_lengthlength od data
tailpointer to the data buffer
tail_lengthbuffer length
Returns:
ESUCCESS

Definition at line 68 of file cc3000_hci.cpp.

void patch_send ( uint8_t  op_code,
uint8_t *  buffer,
uint8_t *  patch,
uint16_t  data_length 
)

Prepare HCI header and initiate an HCI patch write operation.

Parameters:
op_codecommand operation code
bufferpointer to the command's arguments buffer
patchpointer to patch content buffer
data_lengthdata length
Returns:
none

Definition at line 99 of file cc3000_hci.cpp.