Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
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:
-
spi Reference to the spi object.
- Returns:
- none
Definition at line 45 of file cc3000_hci.cpp.
~cc3000_hci | ( | ) |
Member Function Documentation
uint16_t command_send | ( | uint16_t | op_code, |
uint8_t * | buffer, | ||
uint8_t | length | ||
) |
Initiate an HCI command.
- Parameters:
-
op_code command operation code buffer pointer to the command's arguments buffer length length 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_code command operation code buffer pointer to the data buffer arg_length arguments length data_length data 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_code command operation code args pointer to the command's arguments buffer arg_length length of the arguments data_length length od data tail pointer to the data buffer tail_length buffer 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_code command operation code buffer pointer to the command's arguments buffer patch pointer to patch content buffer data_length data length
- Returns:
- none
Definition at line 99 of file cc3000_hci.cpp.
Generated on Tue Jul 12 2022 18:37:33 by
