no-OS
Loading...
Searching...
No Matches
imu_single_core_example.c File Reference

Single-core dual-IMU example for the MAX78000. More...

#include <stdio.h>
#include <stdint.h>
#include <errno.h>
#include "no_os_uart.h"
#include "maxim_gpio.h"
#include "maxim_spi.h"
#include "adxl345.h"
#include "adis.h"
#include "adis1657x.h"
#include "common_data.h"
#include "maxim_sys.h"
Include dependency graph for imu_single_core_example.c:

Macros

#define ADIS_GYRO_MDEG_DIV   5242880LL
 
#define ADIS_ACCL_LSB_PER_MG   52429LL
 

Functions

int imu_single_core_example_main (void)
 Single-core IMU example main function. Initializes both the ADXL345 (accel, P0.19 CS) and ADIS16577-2 (6-axis IMU, P0.11 CS) on SPI0, integrates gyro rate into roll/pitch/yaw angles on the ARM, and logs both sensors at ~10 Hz over UART.
 

Detailed Description

Single-core dual-IMU example for the MAX78000.

Author
Victor Pascu (victo.nosp@m.r.pa.nosp@m.scu@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ ADIS_ACCL_LSB_PER_MG

#define ADIS_ACCL_LSB_PER_MG   52429LL

◆ ADIS_GYRO_MDEG_DIV

#define ADIS_GYRO_MDEG_DIV   5242880LL

Function Documentation

◆ imu_single_core_example_main()

int imu_single_core_example_main ( void )

Single-core IMU example main function. Initializes both the ADXL345 (accel, P0.19 CS) and ADIS16577-2 (6-axis IMU, P0.11 CS) on SPI0, integrates gyro rate into roll/pitch/yaw angles on the ARM, and logs both sensors at ~10 Hz over UART.

Returns
0 on success, negative error code on failure.