monoZ docs
MZ_Addon_board_Si1133_i2c.c
Go to the documentation of this file.
1/*
2 * MZ_Addon_board_Si1133_i2c.c
3 *
4 * Created on: Aug 26, 2021
5 * Author: SKM
6 */
7
9#include "MZ_public.h"
10
11/* Si1133 I2C configuration structure - START */
12/*
13 * This configuration structure is used in MZ_hardware_config.c to initialize
14 * the I2C hardware interface.
15 * In this example this Configuration is taken during the Initialization of
16 * the MonoZ_Lib to load the settings prior to Application start.
17 *
18 * NOTE:
19 * In-case Application want to perform I2C initialization later after
20 * application start or by itself during runtime, MZ_I2C_init() API can be
21 * used.
22 * In such case remove the configuration from MZ_hardware_config.c.
23 */
24
26{
28 .Init.Timing = MZ_ADDONUV_INIT_TIMING,
29 .Init.OwnAddress1 = MZ_ADDONUV_INIT_OWNADDRESS1,
30 .Init.AddressingMode = MZ_ADDONUV_INIT_ADDRESSINGMODE,
31 .Init.DualAddressMode = MZ_ADDONUV_INIT_DUALADDRESSMODE,
32 .Init.OwnAddress2 = MZ_ADDONUV_INIT_OWNADDRESS2,
33 .Init.OwnAddress2Masks = MZ_ADDONUV_INIT_OWNADDRESS2MASKS,
34 .Init.GeneralCallMode = MZ_ADDONUV_INIT_GENERALCALLMODE,
35 .Init.NoStretchMode = MZ_ADDONUV_INIT_NOSTRETCHMODE
36};
MZ_I2C_INIT_ST uv_i2c2_instance
#define MZ_ADDONUV_INIT_DUALADDRESSMODE
#define MZ_ADDONUV_INIT_OWNADDRESS2MASKS
#define MZ_ADDONUV_INIT_OWNADDRESS2
#define MZ_ADDONUV_INIT_ADDRESSINGMODE
#define MZ_ADDONUV_INSTANCE
#define MZ_ADDONUV_INIT_GENERALCALLMODE
#define MZ_ADDONUV_INIT_OWNADDRESS1
#define MZ_ADDONUV_INIT_TIMING
#define MZ_ADDONUV_INIT_NOSTRETCHMODE
monoZ Public All peripheral Configurations will send to monoZ library through this file
Structure for I2C Initialization.
Definition: MZ_public.h:37
I2C_TypeDef * Instance
Definition: MZ_public.h:38