Nut/OS  5.0.5
API Reference
_NUTTWIICB Struct Reference

#include <stm32_twi.h>

Collaboration diagram for _NUTTWIICB:
[legend]

Data Fields

volatile uint_fast16_t tw_mm_sla
 Bus slave address.
volatile uint_fast8_t tw_mm_err
 Bus current error condition.
volatile uint_fast8_t tw_mm_error
 Bus last error condition.
uint8_ttw_mm_iadr
 Bus nodes internal address register length.
volatile uint_fast8_t tw_mm_iadrlen
 Bus nodes internal address register.
const uint8_ttw_mm_txbuf
 Bus transmission data buffer pointer.
volatile uint_fast16_t tw_mm_txlen
 Bus transmission data block length.
volatile uint_fast16_t tw_mm_txidx
 Bus transmissinn position.
uint8_ttw_mm_rxbuf
 Bus reception data buffer pointer.
volatile uint_fast16_t tw_mm_rxlen
 Bus reception data block length.
volatile uint_fast16_t tw_mm_rxidx
 Bus reception position.
volatile uint_fast8_t tw_mm_dir
 Bus data direction.
HANDLE tw_mm_mtx
 Transmission Ongoing Mutex.
uint8_ttw_mm_buf
 Bus transmission data buffer pointer.
volatile uint_fast16_t tw_mm_len
 Bus transmission data block length.
volatile uint_fast16_t tw_mm_idx
 Bus transmissinn position.
volatile uint_fast8_t tw_if_busy
 Flag that interface is busy.
uint_fast8_t tw_sm_sla
 Slave address received.
volatile uint_fast8_t tw_sm_err
 Current slave mode error.
volatile uint_fast8_t tw_sm_error
 Last slave mode error.
uint8_ttw_sm_txbuf
 Pointer to the slave transmit buffer.
uint_fast16_t tw_sm_txlen
 Number of bytes to transmit in slave mode.
volatile uint_fast16_t tw_sm_txidx
 Current slave transmit buffer index.
uint8_ttw_sm_rxbuf
 Pointer to the slave receive buffer.
volatile uint_fast16_t tw_sm_rxlen
 Size of the master receive buffer.
volatile uint_fast16_t tw_sm_rxidx
 Current slave receive buffer index.
HANDLE tw_sm_rxmtx
 Threads waiting for slave receive.
HANDLE tw_sm_txmtx
 Threads waiting for slave transmit done.

Field Documentation

Bus nodes internal address register length.

Referenced by NutTwiMasterRegRead(), NutTwiMasterRegWrite(), and NutTwiMasterTranceive().

Bus nodes internal address register.

Referenced by NutTwiMasterRegRead(), NutTwiMasterRegWrite(), and NutTwiMasterTranceive().

Bus transmission data buffer pointer.

Referenced by NutTwiMasterRegRead(), NutTwiMasterRegWrite(), and NutTwiMasterTranceive().

Bus transmissinn position.

Bus reception data buffer pointer.

Referenced by NutTwiMasterRegRead(), NutTwiMasterRegWrite(), and NutTwiMasterTranceive().

Bus reception position.

Referenced by NutTwiMasterTranceive().

Bus transmission data buffer pointer.

Referenced by NutTwiMasterRegRead(), NutTwiMasterRegWrite(), and NutTwiMasterTranceive().

Flag that interface is busy.

Referenced by NutTwiMasterTranceive(), NutTwiSlaveListen(), and NutTwiSlaveRespond().

Slave address received.

Referenced by NutTwiSlaveListen().

Current slave mode error.

Referenced by NutTwiSlaveListen(), and NutTwiSlaveRespond().

Last slave mode error.

Referenced by NutTwiSlaveError(), and NutTwiSlaveRespond().

Pointer to the slave transmit buffer.

Referenced by NutTwiSlaveRespond().

Number of bytes to transmit in slave mode.

Referenced by NutTwiSlaveRespond().

Current slave transmit buffer index.

Referenced by NutTwiSlaveRespond().

Pointer to the slave receive buffer.

Referenced by NutTwiSlaveListen().

Size of the master receive buffer.

Referenced by NutTwiMasterTranceive(), and NutTwiSlaveListen().

Current slave receive buffer index.

Referenced by NutTwiSlaveListen().

Threads waiting for slave receive.

Referenced by NutTwiSlaveListen().

Threads waiting for slave transmit done.

Referenced by NutTwiSlaveRespond().


The documentation for this struct was generated from the following files: