/*******************************************************************************
 * @file	app_raw_main.h
 * @author	CandyPops Co.
 * @version V1.0.0
 * @date	2022-09-05
 * @brief
 ******************************************************************************/

/*******************************************************************************
 * [Header overview] ICM42670P main initialization/polling loop declarations
 *
 * Declares the full initialization and main loop functions for the
 * ICM42670P IMU sensor.
 *   - icm42670_init()   : Full init (MCU config -> IMU init -> sensor config -> enable IRQ)
 *   - icm42670_main()   : Main polling loop (check INT1 interrupt -> read data)
 *   - icm42670_uninit() : Release (prototype only, implementation elsewhere)
 ******************************************************************************/

#ifndef _APP_RAW_MAIN_H_
#define _APP_RAW_MAIN_H_
#include "sdk_config.h"

/* ICM42670P full init — MCU I2C config -> IMU driver init -> sensor config -> enable IRQ */
int icm42670_init(void);

/* ICM42670P main polling loop — check INT1 interrupt flag, then read sensor data */
void icm42670_main(void);

/* ICM42670P release (prototype declaration) */
int icm42670_uninit(void);

#endif /* !_APP_RAW_MAIN_H_ */
