« Back to documentation index 
    
Link_buff_api 
Function Documentation 
init_spi 
Parameters: 
  
   
Returns: none initializes an SPI interface 
Definition at line 216  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 614  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 710  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 147  of file spi.cpp .
 
 
SpiClose. 
Parameters: 
  
   
Returns: none Close Spi interface 
Definition at line 165  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 250  of file spi.cpp .
 
 
      
        
          void SpiOpen  
          ( 
          gcSpiHandleRx  
           pfRxHandler  ) 
           
      
 
SpiOpen. 
Parameters: 
  
   
Returns: none Open Spi interface 
Definition at line 189  of file spi.cpp .
 
 
      
        
          void SpiPauseSpi  
          ( 
          void  
           ) 
           
      
 
SpiPauseSpi. 
Parameters: 
  
   
Returns: none Spi pause operation 
Definition at line 537  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 469  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 418  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 450  of file spi.cpp .
 
 
      
        
          void SpiResumeSpi  
          ( 
          void  
           ) 
           
      
 
SpiResumeSpi. 
Parameters: 
  
   
Returns: none Spi resume operation 
Definition at line 557  of file spi.cpp .
 
 
      
        
          void SpiTriggerRxProcessing  
          ( 
          void  
           ) 
           
      
 
SpiTriggerRxProcessing. 
Parameters: 
  
   
Returns: none Spi RX processing 
Definition at line 576  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 288  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 388  of file spi.cpp .
 
 
      
        
          void SSIContReadOperation  
          ( 
          void  
           ) 
           
      
 
SSIContReadOperation. 
Parameters: 
  
   
Returns: none SPI read operation 
Definition at line 668  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 692  of file spi.cpp .