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 api.h

: Header for main.c file. This file contains the common defines of the application. Más...

#include "stm32f4xx_hal.h"
#include <stdint.h>

Ir al código fuente de este archivo.

Estructuras de datos

struct  FPTRS_T
struct  COMMAND_DATA

defines

#define REG_STATUS   0
#define REG_MODULE_ID   1
#define REG_FUNCTION_ID   2
#define REG_ARG_TYPES   3
#define REG_DATA_START   4
#define API_GO   0x2
#define API_BUSY   0x1
#define ARGTYPE_U32   0
#define ARGTYPE_TLV   1
#define API_ALIGN(x)
#define STRUCT_COUNT(x)
#define ARGTYPE_MASK   0x7F
#define TLV_TYPE   0
#define TLV_LENGTH   1
#define TLV_VALUE   4
#define TLV_HDRLEN   4
#define ARGTYPE_PTR   0x80
#define ARGLEN_PARAM   0x8000
#define MODULE_GROUP_SHIFT   6
#define MODULE_GROUP_MASK   ( (0xFF << MODULE_GROUP_SHIFT) & 0xFF )
#define MODULE_GROUP(m)
#define MODULE_ISGROUP(m, g)
#define MODULE_INDEX(m)
#define MODULE_GROUPS   4
#define NONE_modules   0xff
#define MAX_ARGS   8
#define COMMAND_SIZE   1280

typedefs

typedef enum TASK_T TASK_TYPE
typedef HAL_StatusTypeDef(* fptr_0) (void)
typedef HAL_StatusTypeDef(* fptr_1) (uintptr_t arg0)
typedef HAL_StatusTypeDef(* fptr_2) (uintptr_t arg0, uintptr_t arg1)
typedef HAL_StatusTypeDef(* fptr_3) (uintptr_t arg0, uintptr_t arg1, uintptr_t arg2)
typedef HAL_StatusTypeDef(* fptr_4) (uintptr_t arg0, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3)
typedef HAL_StatusTypeDef(* fptr_5) (uintptr_t arg0, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4)
typedef struct FPTRS_T FPTRS

Enumeraciones

enum  TASK_T { NONE_TASK_ID = 0 , ANY_TASK_ID = 1 }
enum  ARG_TYPE {
  UINT8_T , INT8_T , UINT16_T , INT16_T ,
  UINT32_T , INT32_T , FLOAT32_T , FLOAT16_T ,
  UINT64_T , __VOID
}

Funciones

void exec_fn (uint8_t *data)

Variables

COMMAND_DATA command

Descripción detallada

: Header for main.c file. This file contains the common defines of the application.

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.

Documentación de «define»

◆ API_ALIGN

#define API_ALIGN ( x)
Valor:
( ((x)+3) & 0xFFFC )

◆ MODULE_GROUP

#define MODULE_GROUP ( m)
Valor:
( (m) >> MODULE_GROUP_SHIFT )

◆ MODULE_INDEX

#define MODULE_INDEX ( m)
Valor:
( (m) & ~MODULE_GROUP_MASK )

◆ MODULE_ISGROUP

#define MODULE_ISGROUP ( m,
g )
Valor:
( (m) & MODULE_GROUP_MASK == (g) )

◆ STRUCT_COUNT

#define STRUCT_COUNT ( x)
Valor:
( sizeof(x) / sizeof(x[0]) )