monoZ docs
MZ_spi2_instance.c File Reference
#include <MZ_spi2_instance.h>
#include "MZ_public.h"
#include "MZ_spi.h"

Go to the source code of this file.

Functions

static void spi2_tx_intr (void *arg)
 
static void spi2_rx_intr (void *arg)
 
mz_error_t SPI2_init (void)
 

Variables

static char rx_char = 0
 
MZ_SPI_INIT_ST _instance
 

Function Documentation

◆ spi2_tx_intr()

static void spi2_tx_intr ( void *  arg)
static

Definition at line 13 of file MZ_spi2_instance.c.

◆ spi2_rx_intr()

static void spi2_rx_intr ( void *  arg)
static

Definition at line 20 of file MZ_spi2_instance.c.

◆ SPI2_init()

mz_error_t SPI2_init ( void  )

Definition at line 47 of file MZ_spi2_instance.c.

Variable Documentation

◆ rx_char

char rx_char = 0
static

Definition at line 11 of file MZ_spi2_instance.c.

◆ _instance

MZ_SPI_INIT_ST _instance
Initial value:
=
{
.Instance = MZ_SPI2_INSTANCE,
.Init.Mode = MZ_SPI2_INIT_MODE,
.Init.Direction = MZ_SPI2_INIT_DIRECTION,
.Init.DataSize = MZ_SPI2_INIT_DATASIZE,
.Init.CLKPolarity = MZ_SPI2_INIT_CLKPOLARITY,
.Init.CLKPhase = MZ_SPI2_INIT_CLKPHASE,
.Init.NSS = MZ_SPI2_INIT_NSS,
.Init.BaudRatePrescaler = MZ_SPI2_INIT_BAUDRATEPRESCALER,
.Init.FirstBit = MZ_SPI2_INIT_FIRSTBIT,
.Init.TIMode = MZ_SPI2_INIT_TIMODE,
.Init.CRCCalculation = MZ_SPI2_INIT_CRCCALCULATION,
.Init.CRCPolynomial = MZ_SPI2_INIT_CRCPOLYNOMIAL,
.Init.CRCLength = MZ_SPI2_INIT_CRCLENGTH,
.Init.NSSPMode = MZ_SPI2_INIT_NSSPMODE
}
#define MZ_SPI2_INIT_FIRSTBIT
#define MZ_SPI2_INIT_MODE
#define MZ_SPI2_INIT_TIMODE
#define MZ_SPI2_INIT_CRCCALCULATION
#define MZ_SPI2_INSTANCE
#define MZ_SPI2_INIT_DIRECTION
#define MZ_SPI2_INIT_NSS
#define MZ_SPI2_INIT_BAUDRATEPRESCALER
#define MZ_SPI2_INIT_DATASIZE
#define MZ_SPI2_INIT_NSSPMODE
#define MZ_SPI2_INIT_CLKPHASE
#define MZ_SPI2_INIT_CRCLENGTH
#define MZ_SPI2_INIT_CRCPOLYNOMIAL
#define MZ_SPI2_INIT_CLKPOLARITY

Definition at line 29 of file MZ_spi2_instance.c.