monoZ docs
MZ_i2c1_instance.h
Go to the documentation of this file.
1/*
2 * MZ_Sensor_i2c.h
3 *
4 * Created on: 21-Jun-2021
5 * Author: Mahendra
6 */
7
8#ifndef INC_MZ_SENSOR_I2C_H_
9#define INC_MZ_SENSOR_I2C_H_
10
11#include "MZ_public.h"
12#include "MZ_error_handler.h"
13
14#define SLAVE_ADD (0X55 << 1)
15#define MZ_I2C1_INSTANCE (I2C2)
16#define MZ_I2C1_INIT_TIMING (0x10909CEC)
17#define MZ_I2C1_INIT_OWNADDRESS1 (SLAVE_ADD)
18#define MZ_I2C1_INIT_ADDRESSINGMODE (I2C_ADDRESSINGMODE_7BIT)
19#define MZ_I2C1_INIT_DUALADDRESSMODE (I2C_DUALADDRESS_DISABLE)
20#define MZ_I2C1_INIT_OWNADDRESS2 (0)
21#define MZ_I2C1_INIT_OWNADDRESS2MASKS (I2C_OA2_NOMASK)
22#define MZ_I2C1_INIT_GENERALCALLMODE (I2C_GENERALCALL_DISABLE)
23#define MZ_I2C1_INIT_NOSTRETCHMODE (I2C_NOSTRETCH_DISABLE)
24
25#define MZ_I2C_INSTANCE (_I2C2)
26
27
28
29
31
32
33#endif /* INC_MZ_SENSOR_I2C_H_ */
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
mz_error_t I2C1_init(void)
monoZ Public All peripheral Configurations will send to monoZ library through this file