1
0
Files
setr2-monorepo/P3_SETR2/Core/Src/magnetic.c
2025-10-27 17:07:20 +01:00

24 lines
416 B
C

/*
* magnetic.c
*
* Created on: Oct 27, 2025
* Author: jomaa
*/
#include "magnetic.h"
void Magneto_Test(void)
{
int16_t pDataXYZ[3] = {0};
BSP_MAGNETO_Init();
BSP_MAGNETO_GetXYZ(pDataXYZ);
printf("MAGNETO_X = %d \n", pDataXYZ[0]);
printf("MAGNETO_Y = %d \n", pDataXYZ[1]);
printf("MAGNETO_Z = %d \n", pDataXYZ[2]);
BSP_MAGNETO_DeInit();
printf("\n*** End of Magneto Test ***\n\n");
return;
}