7#define DEV_I2CM_API_ID 1
16 I2CM_ISDEVICEREADY = 5,
20#define DEV_I2CM_FUNCTIONS_COUNT 6
21extern const FPTRS DEV_I2CM_FPTRS[DEV_I2CM_FUNCTIONS_COUNT];
24#define I2C_TIMEOUT (5000)
60HAL_StatusTypeDef I2CM_Write (uint8_t address, uint8_t* data, uint16_t size);
74HAL_StatusTypeDef I2CM_Read (uint8_t address, uint8_t* data, uint16_t size);
89HAL_StatusTypeDef I2CM_Read_Sr (uint8_t address, uint8_t reg, uint8_t* data, uint16_t size);
102HAL_StatusTypeDef I2CM_IsDeviceReady (uint8_t address, uint32_t trials);
: Header for main.c file. This file contains the common defines of the application.
HAL_StatusTypeDef I2CM_DeInit(void)
Desinicializa I2C1.
Definition dev_i2cm.c:48
HAL_StatusTypeDef I2CM_InitStart(void)
Inicializa I2C1 a 400 kHz, 7-bit, sin dual address.
Definition dev_i2cm.c:30