monoZ docs
MZ_i2c1_instance.c File Reference
#include "MZ_i2c1_instance.h"
#include "MZ_public.h"
#include "MZ_i2c.h"

Go to the source code of this file.

Functions

void i2c1_tx_intr (void *arg)
 
void i2c1_rx_intr (void *arg)
 
mz_error_t I2C1_init (void)
 

Variables

static char rx_char = 0
 
MZ_I2C_INIT_ST i2c1_instance
 

Detailed Description

Date
21-Jun-2021
Author
Mahendra & Kafeel

Definition in file MZ_i2c1_instance.c.

Function Documentation

◆ i2c1_tx_intr()

void i2c1_tx_intr ( void *  arg)

Definition at line 15 of file MZ_i2c1_instance.c.

◆ i2c1_rx_intr()

void i2c1_rx_intr ( void *  arg)

Definition at line 20 of file MZ_i2c1_instance.c.

◆ I2C1_init()

mz_error_t I2C1_init ( void  )

Definition at line 38 of file MZ_i2c1_instance.c.

Variable Documentation

◆ rx_char

char rx_char = 0
static

flag is declared and initialized

Definition at line 12 of file MZ_i2c1_instance.c.

◆ i2c1_instance

MZ_I2C_INIT_ST i2c1_instance
Initial value:
=
{
.Instance = MZ_I2C1_INSTANCE,
.Init.Timing = MZ_I2C1_INIT_TIMING,
.Init.OwnAddress1 = MZ_I2C1_INIT_OWNADDRESS1,
.Init.AddressingMode = MZ_I2C1_INIT_ADDRESSINGMODE,
.Init.DualAddressMode = MZ_I2C1_INIT_DUALADDRESSMODE,
.Init.OwnAddress2 = MZ_I2C1_INIT_OWNADDRESS2,
.Init.OwnAddress2Masks = MZ_I2C1_INIT_OWNADDRESS2MASKS,
.Init.GeneralCallMode = MZ_I2C1_INIT_GENERALCALLMODE,
.Init.NoStretchMode = MZ_I2C1_INIT_NOSTRETCHMODE
}
#define MZ_I2C1_INIT_OWNADDRESS1
#define MZ_I2C1_INIT_OWNADDRESS2MASKS
#define MZ_I2C1_INIT_GENERALCALLMODE
#define MZ_I2C1_INIT_DUALADDRESSMODE
#define MZ_I2C1_INIT_NOSTRETCHMODE
#define MZ_I2C1_INIT_ADDRESSINGMODE
#define MZ_I2C1_INIT_OWNADDRESS2
#define MZ_I2C1_INIT_TIMING
#define MZ_I2C1_INSTANCE

Definition at line 25 of file MZ_i2c1_instance.c.