CY8CKIT-062-WIFI-BT BSP
Data Structures

General Description

Data Structures

struct  stc_sdio_event_flag_t
 Flags used to indicate an event occurred, set in the interrupt, cleared in the check events function. More...
 
struct  stc_sdio_irq_cb_t
 Holds pointers to callback functions. More...
 
struct  stc_sdio_gInternalData_t
 Global structure used to hold data from interrupt and other functions. More...
 
struct  stc_sdio_cmd_config_t
 structure used for configuring command More...
 
struct  stc_sdio_data_config_t
 structure used for the data channel More...
 
struct  stc_sdio_cmd_t
 structure used for configuring command and data More...
 

Typedefs

typedef void(* sdio_card_int_cb_t) (void)
 

Enumerations

enum  en_sdio_event_t { SdCmdEventCmdDone = (1u), SdCmdEventTransferDone = (2u) }
 This enum is used when checking for specific events. More...
 
enum  en_sdio_result_t {
  Ok = 0x00, Error = 0x01, CommandCrcError = 0x02, CommandIdxError = 0x04,
  CommandEndError = 0x08, DataCrcError = 0x10, CMDTimeout = 0x20, DataTimeout = 0x40,
  ResponseFlagError = 0x80
}
 Used to indicate the result of a function. More...
 

Data Structure Documentation

◆ stc_sdio_event_flag_t

struct stc_sdio_event_flag_t
Data Fields
uint8_t u8CmdComplete

If non-zero a command has completed

uint8_t u8TransComplete

If non-zero a transfer has completed

uint8_t u8CRCError

If non-zero a CRC error was detected in a data transfer

◆ stc_sdio_irq_cb_t

struct stc_sdio_irq_cb_t
Data Fields
sdio_card_int_cb_t pfnCardIntCb

Pointer to card interrupt callback function

◆ stc_sdio_gInternalData_t

struct stc_sdio_gInternalData_t
Data Fields
stc_sdio_irq_cb_t pstcCallBacks

Holds pointers to all the call back functions

stc_sdio_event_flag_t stcEvents

Holds all of the event count flags, set in interrupt used in check events

◆ stc_sdio_cmd_config_t

struct stc_sdio_cmd_config_t
Data Fields
uint8_t u8CmdIndex

Command index

uint32_t u32Argument

The argument of command

uint8_t bResponseRequired

TRUE: A Response is required

uint8_t * pu8ResponseBuf

Pointer to location to store response

◆ stc_sdio_data_config_t

struct stc_sdio_data_config_t
Data Fields
uint8_t bRead

TRUE: Read, FALSE: write

uint16_t u16BlockSize

Block size

uint16_t u16BlockCount

Holds the number of blocks to send

uint8_t * pu8Data

Pointer data buffer

◆ stc_sdio_cmd_t

struct stc_sdio_cmd_t
Data Fields
uint32_t u32CmdIdx

Command index

uint32_t u32Arg

The argument of command

uint32_t * pu32Response

Pointer to location to store response

uint8_t * pu8Data

Pointer data buffer

uint8_t bRead

TRUE: Read, FALSE: write

uint16_t u16BlockCnt

Number of blocks to send

uint16_t u16BlockSize

Block size

Typedef Documentation

◆ sdio_card_int_cb_t

typedef void(* sdio_card_int_cb_t) (void)

Create a type for the card interrupt call back

Enumeration Type Documentation

◆ en_sdio_event_t

This enum is used when checking for specific events.

Enumerator
SdCmdEventCmdDone 

Check to see if a command is done

SdCmdEventTransferDone 

Check to see if a transfer is done

◆ en_sdio_result_t

Used to indicate the result of a function.

Enumerator
Ok 

No error

Error 

Non-specific error code

CommandCrcError 

There was a CRC error on the Command/Response

CommandIdxError 

The index for the command didn't match

CommandEndError 

There was an end bit error on the command

DataCrcError 

There was a data CRC Error

CMDTimeout 

The command didn't finish before the timeout period was over

DataTimeout 

The data didn't finish before the timeout period was over

ResponseFlagError 

There was an error in the response flag for command 53