Driver for CC3000 Wi-Fi module
Dependencies: NVIC_set_all_priorities
Dependents: CC3000_Simple_Socket Wi-Go_IOT_Demo
Cc3000_spi_hci
Functions | |
long | SpiFirstWrite (unsigned char *ucBuf, unsigned short usLength) |
First SPI write after powerup (delay needed between SPI header and body) | |
void | SpiWriteDataSynchronous (unsigned char *data, unsigned short size) |
Low level SPI write. | |
void | SpiReadDataSynchronous (unsigned char *data, unsigned short size) |
Low level SPI read. | |
long | SpiReadDataCont (void) |
Process the received SPI Header and in accordance with it - continue reading the packet. | |
void | SpiOpen (gcSpiHandleRx pfRxHandler) |
Open the SPI interface. | |
void | SpiClose (void) |
Close the SPI interface. | |
long | SpiWrite (unsigned char *pUserBuffer, unsigned short usLength) |
SPI Write function. | |
void | WLAN_IRQHandler (void) |
SPI interrupt Handler. | |
unsigned short | hci_command_send (unsigned short usOpcode, unsigned char *ucArgs, unsigned char ucArgsLength) |
Send a 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) |
Send HCI data. | |
void | hci_data_command_send (unsigned short usOpcode, unsigned char *pucBuff, unsigned char ucArgsLength, unsigned short ucDataLength) |
Prepare HCI header and send HCI data. | |
void | hci_patch_send (unsigned char ucOpcode, unsigned char *pucBuff, char *patch, unsigned short usDataLength) |
Prepare HCI header and send HCI patch. |
Function Documentation
unsigned short hci_command_send | ( | unsigned short | usOpcode, |
unsigned char * | ucArgs, | ||
unsigned char | ucArgsLength | ||
) |
Send a HCI command.
- Parameters:
-
usOpcode command operation code pucBuff pointer to the command's arguments buffer ucArgsLength length of the arguments
- Returns:
- none
Definition at line 275 of file cc3000_spi_hci.cpp.
void hci_data_command_send | ( | unsigned short | usOpcode, |
unsigned char * | pucBuff, | ||
unsigned char | ucArgsLength, | ||
unsigned short | ucDataLength | ||
) |
Prepare HCI header and send HCI data.
- Parameters:
-
usOpcode command operation code pucBuff pointer to the data buffer ucArgsLength arguments length ucDataLength data length
- Returns:
- none
Definition at line 313 of file cc3000_spi_hci.cpp.
long hci_data_send | ( | unsigned char | ucOpcode, |
unsigned char * | ucArgs, | ||
unsigned short | usArgsLength, | ||
unsigned short | usDataLength, | ||
const unsigned char * | ucTail, | ||
unsigned short | usTailLength | ||
) |
Send HCI data.
- Parameters:
-
usOpcode command operation code ucArgs pointer to the command's arguments buffer usArgsLength length of the arguments ucTail pointer to the data buffer usTailLength buffer length
- Returns:
- none
Definition at line 290 of file cc3000_spi_hci.cpp.
void hci_patch_send | ( | unsigned char | ucOpcode, |
unsigned char * | pucBuff, | ||
char * | patch, | ||
unsigned short | usDataLength | ||
) |
Prepare HCI header and send HCI patch.
- Parameters:
-
usOpcode command operation code pucBuff pointer to the command's arguments buffer patch pointer to patch content buffer usDataLength data length
- Returns:
- none
Definition at line 332 of file cc3000_spi_hci.cpp.
void SpiClose | ( | void | ) |
Close the SPI interface.
- Parameters:
-
none
- Returns:
- none
Definition at line 56 of file cc3000_spi_hci.cpp.
long SpiFirstWrite | ( | unsigned char * | ucBuf, |
unsigned short | usLength | ||
) |
First SPI write after powerup (delay needed between SPI header and body)
- Parameters:
-
pointer to write buffer buffer length
- Returns:
- none
Definition at line 80 of file cc3000_spi_hci.cpp.
void SpiOpen | ( | gcSpiHandleRx | pfRxHandler ) |
Open the SPI interface.
- Parameters:
-
pointer to RX handle
- Returns:
- none
Definition at line 66 of file cc3000_spi_hci.cpp.
long SpiReadDataCont | ( | void | ) |
Process the received SPI Header and in accordance with it - continue reading the packet.
- Parameters:
-
None
- Returns:
- 0
Definition at line 178 of file cc3000_spi_hci.cpp.
void SpiReadDataSynchronous | ( | unsigned char * | data, |
unsigned short | size | ||
) |
Low level SPI read.
- Parameters:
-
pointer to data buffer number of bytes
- Returns:
- none
Definition at line 168 of file cc3000_spi_hci.cpp.
long SpiWrite | ( | unsigned char * | pUserBuffer, |
unsigned short | usLength | ||
) |
SPI Write function.
- Parameters:
-
pointer to write buffer buffer length
- Returns:
- 0
Definition at line 100 of file cc3000_spi_hci.cpp.
void SpiWriteDataSynchronous | ( | unsigned char * | data, |
unsigned short | size | ||
) |
Low level SPI write.
- Parameters:
-
pointer to data buffer number of bytes
- Returns:
- none
Definition at line 158 of file cc3000_spi_hci.cpp.
void WLAN_IRQHandler | ( | void | ) |
SPI interrupt Handler.
The external WLAN device asserts the IRQ line when data is ready.
The host CPU needs to acknowledges the IRQ by asserting CS.
- Parameters:
-
none
- Returns:
- none
Definition at line 229 of file cc3000_spi_hci.cpp.
Generated on Wed Jul 13 2022 18:31:31 by 1.7.2