Dependencies:
mbed
« Back to documentation index
Link_buff_api
Function Documentation
init_spi
Parameters:
Returns: none
initializes an SPI interface
Definition at line 221 of file spi.cpp .
void IntSpiGPIOHandler
(
void
)
IntSpiGPIOHandler.
Parameters:
Returns: none
GPIO A interrupt handler. When the external SSI WLAN device is ready to interact with Host CPU it generates an interrupt signal. After that Host CPU has registered this interrupt request it set the corresponding /CS in active state.
Definition at line 622 of file spi.cpp .
int ReadWlanInterruptPin
(
void
)
ReadWlanInterruptPin.
Parameters:
Returns: none
return wlan interrup pin
Definition at line 733 of file spi.cpp .
long RXBufferIsEmpty
(
void
)
RXBufferIsEmpty.
Parameters:
Returns: returns 1 if buffer is empty, 0 otherwise
Indication if RX SPI buffer is empty
Definition at line 716 of file spi.cpp .
void SpiCleanGPIOISR
(
void
)
SpiCleanGPIOISR.
Parameters:
Returns: none
This function get the reason for the GPIO interrupt and clear corresponding interrupt flag
Definition at line 152 of file spi.cpp .
SpiClose.
Parameters:
Returns: none
Close Spi interface
Definition at line 170 of file spi.cpp .
long SpiFirstWrite
(
unsigned char *
ucBuf ,
unsigned short
usLength
)
SpiFirstWrite.
Parameters:
ucBuf buffer to write
usLength buffer's length
Returns: none
enter point for first write flow
Definition at line 254 of file spi.cpp .
void SpiOpen
(
gcSpiHandleRx
pfRxHandler )
SpiOpen.
Parameters:
Returns: none
Open Spi interface
Definition at line 194 of file spi.cpp .
void SpiPauseSpi
(
void
)
SpiPauseSpi.
Parameters:
Returns: none
Spi pause operation
Definition at line 546 of file spi.cpp .
long SpiReadDataCont
(
void
)
SpiReadDataCont.
Parameters:
Returns: None
This function processes received SPI Header and in accordance with it - continues reading the packet
Definition at line 477 of file spi.cpp .
void SpiReadDataSynchronous
(
unsigned char *
data ,
unsigned short
size
)
SpiReadDataSynchronous.
Parameters:
data buffer to read
size buffer's size
Returns: none
Spi read operation
Definition at line 426 of file spi.cpp .
void SpiReadHeader
(
void
)
SpiReadHeader.
Parameters:
Returns: none
This function enter point for read flow: first we read minimal 5 SPI header bytes and 5 Event Data bytes
Definition at line 458 of file spi.cpp .
void SpiResumeSpi
(
void
)
SpiResumeSpi.
Parameters:
Returns: none
Spi resume operation
Definition at line 566 of file spi.cpp .
void SpiTriggerRxProcessing
(
void
)
SpiTriggerRxProcessing.
Parameters:
Returns: none
Spi RX processing
Definition at line 585 of file spi.cpp .
long SpiWrite
(
unsigned char *
pUserBuffer ,
unsigned short
usLength
)
SpiWrite.
Parameters:
pUserBuffer buffer to write
usLength buffer's length
Returns: none
Spi write operation
Definition at line 291 of file spi.cpp .
void SpiWriteDataSynchronous
(
unsigned char *
data ,
unsigned short
size
)
SpiWriteDataSynchronous.
Parameters:
data buffer to write
size buffer's size
Returns: none
Spi write operation
Definition at line 394 of file spi.cpp .
void SSIContReadOperation
(
void
)
SSIContReadOperation.
Parameters:
Returns: none
SPI read operation
Definition at line 675 of file spi.cpp .
long TXBufferIsEmpty
(
void
)
TXBufferIsEmpty.
Parameters:
Returns: returns 1 if buffer is empty, 0 otherwise
Indication if TX SPI buffer is empty
Definition at line 699 of file spi.cpp .
void WlanInterruptDisable
(
void
)
WlanInterruptDisable.
Parameters:
Returns: none
Disable waln IrQ pin
Definition at line 806 of file spi.cpp .
void WlanInterruptEnable
(
void
)
WlanInterruptEnable.
Parameters:
Returns: none
Enable wlan IRQ pin
Definition at line 755 of file spi.cpp .
void WriteWlanPin
(
unsigned char
val )
WriteWlanPin.
Parameters:
val value to write to wlan pin
Returns: none
write value to wlan pin
Definition at line 825 of file spi.cpp .