PSoC 6 Peripheral Driver Library
cy_stc_smif_context_t Struct Reference

Description

The SMIF internal context data.

The user must not modify it.

Data Fields

uint8_t const volatile *volatile txBufferAddress
 The pointer to the data to transfer.
 
uint32_t txBufferSize
 The size of the data to transmit in bytes.
 
uint32_t volatile txBufferCounter
 The transfer counter. More...
 
uint8_t volatile *volatile rxBufferAddress
 The pointer to the variable where the received data is stored.
 
uint32_t rxBufferSize
 The size of the data to be received in bytes.
 
uint32_t volatile rxBufferCounter
 The transfer counter. More...
 
uint32_t volatile transferStatus
 The status of the transfer. More...
 
cy_smif_event_cb_t volatile txCompleteCb
 The user-defined callback executed at the completion of a transmission.
 
cy_smif_event_cb_t volatile rxCompleteCb
 The user-defined callback executed at the completion of a reception.
 
uint32_t timeout
 The timeout in microseconds for the blocking functions. More...
 

Field Documentation

◆ txBufferCounter

uint32_t volatile cy_stc_smif_context_t::txBufferCounter

The transfer counter.

The number of the transmitted bytes = txBufferSize - txBufferCounter

◆ rxBufferCounter

uint32_t volatile cy_stc_smif_context_t::rxBufferCounter

The transfer counter.

The number of the received bytes = rxBufferSize - rxBufferCounter

◆ transferStatus

uint32_t volatile cy_stc_smif_context_t::transferStatus

The status of the transfer.

The transmitting / receiving is completed / in progress

◆ timeout

uint32_t cy_stc_smif_context_t::timeout

The timeout in microseconds for the blocking functions.

This timeout value applies to all blocking APIs.