monoZ docs
MZ_Addon_board_Si1133_i2c.h
Go to the documentation of this file.
1/*
2 * MZ_Addon_board_Si1133_i2c.h
3 *
4 * Created on: Aug 26, 2021
5 * Author: SKM
6 */
7
8#ifndef MZ_ADDON_BOARD_SI1133_I2C_H_
9#define MZ_ADDON_BOARD_SI1133_I2C_H_
10
11#include "MZ_error_handler.h"
12#include "MZ_i2c.h"
13
14#define SI1133_I2C_ADDRESS (0xAA)
16#define SLAVE_ADD (SI1133_I2C_ADDRESS)
17
18#define MZ_ADDONUV_INSTANCE (I2C2)
19#define MZ_ADDONUV_INIT_TIMING (0x10909CEC)
20#define MZ_ADDONUV_INIT_OWNADDRESS1 (SLAVE_ADD)
21#define MZ_ADDONUV_INIT_ADDRESSINGMODE (I2C_ADDRESSINGMODE_7BIT)
22#define MZ_ADDONUV_INIT_DUALADDRESSMODE (I2C_DUALADDRESS_DISABLE)
23#define MZ_ADDONUV_INIT_OWNADDRESS2 (0)
24#define MZ_ADDONUV_INIT_OWNADDRESS2MASKS (I2C_OA2_NOMASK)
25#define MZ_ADDONUV_INIT_GENERALCALLMODE (I2C_GENERALCALL_DISABLE)
26#define MZ_ADDONUV_INIT_NOSTRETCHMODE (I2C_NOSTRETCH_DISABLE)
27#define MZ_ADDONUV_I2C_INSTANCE (_I2C2)
28
29
31
32#endif /* MZ_ADDON_BOARD_SI1133_I2C_H_ */
mz_error_t UV_I2C_init(void)
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
This file contains all the functionalities for I2C protocol.