monoZ docs
MZ_i2c1_instance.h File Reference
#include "MZ_public.h"
#include "MZ_error_handler.h"

Go to the source code of this file.

Macros

#define SLAVE_ADD   (0X55 << 1)
 
#define MZ_I2C1_INSTANCE   (I2C2)
 
#define MZ_I2C1_INIT_TIMING   (0x10909CEC)
 
#define MZ_I2C1_INIT_OWNADDRESS1   (SLAVE_ADD)
 
#define MZ_I2C1_INIT_ADDRESSINGMODE   (I2C_ADDRESSINGMODE_7BIT)
 
#define MZ_I2C1_INIT_DUALADDRESSMODE   (I2C_DUALADDRESS_DISABLE)
 
#define MZ_I2C1_INIT_OWNADDRESS2   (0)
 
#define MZ_I2C1_INIT_OWNADDRESS2MASKS   (I2C_OA2_NOMASK)
 
#define MZ_I2C1_INIT_GENERALCALLMODE   (I2C_GENERALCALL_DISABLE)
 
#define MZ_I2C1_INIT_NOSTRETCHMODE   (I2C_NOSTRETCH_DISABLE)
 
#define MZ_I2C_INSTANCE   (_I2C2)
 

Functions

mz_error_t I2C1_init (void)
 

Macro Definition Documentation

◆ SLAVE_ADD

#define SLAVE_ADD   (0X55 << 1)

Definition at line 14 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INSTANCE

#define MZ_I2C1_INSTANCE   (I2C2)

Definition at line 15 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_TIMING

#define MZ_I2C1_INIT_TIMING   (0x10909CEC)

Definition at line 16 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_OWNADDRESS1

#define MZ_I2C1_INIT_OWNADDRESS1   (SLAVE_ADD)

Definition at line 17 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_ADDRESSINGMODE

#define MZ_I2C1_INIT_ADDRESSINGMODE   (I2C_ADDRESSINGMODE_7BIT)

Definition at line 18 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_DUALADDRESSMODE

#define MZ_I2C1_INIT_DUALADDRESSMODE   (I2C_DUALADDRESS_DISABLE)

Definition at line 19 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_OWNADDRESS2

#define MZ_I2C1_INIT_OWNADDRESS2   (0)

Definition at line 20 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_OWNADDRESS2MASKS

#define MZ_I2C1_INIT_OWNADDRESS2MASKS   (I2C_OA2_NOMASK)

Definition at line 21 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_GENERALCALLMODE

#define MZ_I2C1_INIT_GENERALCALLMODE   (I2C_GENERALCALL_DISABLE)

Definition at line 22 of file MZ_i2c1_instance.h.

◆ MZ_I2C1_INIT_NOSTRETCHMODE

#define MZ_I2C1_INIT_NOSTRETCHMODE   (I2C_NOSTRETCH_DISABLE)

Definition at line 23 of file MZ_i2c1_instance.h.

◆ MZ_I2C_INSTANCE

#define MZ_I2C_INSTANCE   (_I2C2)

Definition at line 25 of file MZ_i2c1_instance.h.

Function Documentation

◆ I2C1_init()

mz_error_t I2C1_init ( void  )

Definition at line 38 of file MZ_i2c1_instance.c.