WL865E4-P  36.07.001
M2MB_SLAVE_SPI_S Struct Reference

#include <m2mb_spi_slave.h>

Data Fields

CHAR rx_buffer [M2MB_SPI_SLAVE_RECEIVE_BUFFER_COUNT][M2MB_SPI_SLAVE_RECEIVE_BUFFER_SIZE]
 
UINT8 rx_get_index
 
UINT8 rx_inuse_index
 
UINT8 rx_recycle_index
 
M2MB_SLAVE_SPI_WRITE_REQUEST_T write_req
 
M2MB_SLAVE_SPI_BUFFER_T rx_buf_info [M2MB_SPI_SLAVE_RECEIVE_BUFFER_COUNT]
 
M2MB_SLAVE_SPI_BUFFER_T tx_buf_info [M2MB_SPI_SLAVE_WRITE_BUFFER_MAX]
 
UINT8 tx_buffer [M2MB_SPI_SLAVE_WRITE_BUFFER_MAX][2048]
 
UINT16 tx_pend_len
 
UINT16 tx_done_len
 
UINT8 rx_enque_cnt
 
UINT8 rx_pause
 
M2MB_OS_SEM_HANDLE sem_handle
 
M2MB_OS_EV_HANDLE ev_tx_handle
 
M2MB_OS_EV_HANDLE ev_init_handle
 
UINT8 init_done
 
INT32 instance_id
 
INT32 mbox_id
 
UINT8 enable
 

Detailed Description

Structure used for SPI slave

Definition at line 107 of file m2mb_spi_slave.h.

Field Documentation

◆ enable

UINT8 enable

device enable or disable

Definition at line 136 of file m2mb_spi_slave.h.

◆ ev_init_handle

M2MB_OS_EV_HANDLE ev_init_handle

event handler for init complete

Definition at line 131 of file m2mb_spi_slave.h.

◆ ev_tx_handle

M2MB_OS_EV_HANDLE ev_tx_handle

event handler for write

Definition at line 130 of file m2mb_spi_slave.h.

◆ init_done

UINT8 init_done

initialization

Definition at line 133 of file m2mb_spi_slave.h.

◆ instance_id

INT32 instance_id

instance id

Definition at line 134 of file m2mb_spi_slave.h.

◆ mbox_id

INT32 mbox_id

MBOX ID

Definition at line 135 of file m2mb_spi_slave.h.

◆ rx_buf_info

◆ rx_buffer

◆ rx_enque_cnt

UINT8 rx_enque_cnt

Number of rx buffers currently enqued

Definition at line 127 of file m2mb_spi_slave.h.

◆ rx_get_index

UINT8 rx_get_index

next buffer index to read (to be read by application)

Definition at line 110 of file m2mb_spi_slave.h.

◆ rx_inuse_index

UINT8 rx_inuse_index

This buffer currently used by application

Definition at line 111 of file m2mb_spi_slave.h.

◆ rx_pause

UINT8 rx_pause

RX pause state

Definition at line 128 of file m2mb_spi_slave.h.

◆ rx_recycle_index

UINT8 rx_recycle_index

rx buffer index to recycle

Definition at line 112 of file m2mb_spi_slave.h.

◆ sem_handle

M2MB_OS_SEM_HANDLE sem_handle

counting semaphore - indicates receive complete event

Definition at line 129 of file m2mb_spi_slave.h.

◆ tx_buf_info

◆ tx_buffer

Definition at line 117 of file m2mb_spi_slave.h.

◆ tx_done_len

UINT16 tx_done_len

Number of bytes already transmitted

Definition at line 125 of file m2mb_spi_slave.h.

◆ tx_pend_len

UINT16 tx_pend_len

Number of bytes pending for tx

Definition at line 124 of file m2mb_spi_slave.h.

◆ write_req

write req

Definition at line 113 of file m2mb_spi_slave.h.


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