WE310F5  39.00.000
m2mb_spi_frame.h File Reference

SPI library implementation. More...

Go to the source code of this file.

Data Structures

struct  M2MB_SPI_FRAME_CFG_S
 

Macros

#define NULL   0
 

Typedefs

typedef void(* M2MB_SPI_FRAME_DATA_RECV_T) (VOID *ctx, UINT8 *data, UINT32 length)
 
typedef struct M2MB_SPI_FRAME_CFG_S M2MB_SPI_FRAME_CFG_T
 

Functions

INT32 m2mb_spi_fmt_init (HANDLE *h, HANDLE spi, M2MB_SPI_FRAME_CFG_T *pCfg)
 
UINT8m2mb_spi_fmt_read (HANDLE h, UINT32 *len)
 
INT32 m2mb_spi_fmt_write (HANDLE h, UINT8 *buf, UINT32 length)
 

Detailed Description

SPI library implementation.

m2m/m2m_generic/common/m2mb_inc/m2mb_spi.h

The following functions are implemented: m2mb_spi_fmt_init m2mb_spi_fmt_read m2mb_spi_fmt_write

Dependencies: inc/m2mb_types.h inc/driver/m2mb_spi.h

Author
SP
Date
18/09/2020

Definition in file m2mb_spi_frame.h.

Macro Definition Documentation

◆ NULL

#define NULL   0

Definition at line 31 of file m2mb_spi_frame.h.

Typedef Documentation

◆ M2MB_SPI_FRAME_CFG_T

◆ M2MB_SPI_FRAME_DATA_RECV_T

typedef void(* M2MB_SPI_FRAME_DATA_RECV_T) (VOID *ctx, UINT8 *data, UINT32 length)

Definition at line 42 of file m2mb_spi_frame.h.

Function Documentation

◆ m2mb_spi_fmt_init()

INT32 m2mb_spi_fmt_init ( HANDLE h,
HANDLE  spi,
M2MB_SPI_FRAME_CFG_T pCfg 
)

◆ m2mb_spi_fmt_read()

UINT8* m2mb_spi_fmt_read ( HANDLE  h,
UINT32 len 
)

◆ m2mb_spi_fmt_write()

INT32 m2mb_spi_fmt_write ( HANDLE  h,
UINT8 buf,
UINT32  length 
)