Proyecto Final – Medición de Inclinación 0.0.1
Este proyecto utiliza la placa NUCLEO-STM32F446RE y permite detectar y visualizar en tiempo real la inclinación mediante el sensor MPU-6050.
Cargando...
Buscando...
Nada coincide
Referencia del archivo dev_i2cm.c

This file provides code for the configuration of the I2C master. Más...

#include "dev_i2cm_api.h"

Funciones

HAL_StatusTypeDef I2CM_InitStart (void)
 Inicializa I2C1 a 400 kHz, 7-bit, sin dual address.
HAL_StatusTypeDef I2CM_DeInit (void)
 Desinicializa I2C1.
HAL_StatusTypeDef I2CM_Write (uint8_t address, uint8_t *data, uint16_t size)
 Escribe un buffer en un esclavo I²C.
HAL_StatusTypeDef I2CM_Read (uint8_t address, uint8_t *data, uint16_t size)
 Lee un buffer crudo desde un esclavo I²C (no lee dirección interna).
HAL_StatusTypeDef I2CM_Read_Sr (uint8_t address, uint8_t reg, uint8_t *data, uint16_t size)
 Lee bytes desde un registro interno.
HAL_StatusTypeDef I2CM_IsDeviceReady (uint8_t address, uint32_t trials)
 Verifica si un esclavo responde (ACK) en la dirección dada.

Descripción detallada

This file provides code for the configuration of the I2C master.

Atención

Copyright (c) 2025 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.