Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sMotor LIS3MDL X_NUCLEO_53L0A1
lis3mdl_class.cpp
00001 #include <lis3mdl_class.h> 00002 00003 MAGNETO_StatusTypeDef LIS3MDL::LIS3MDL_M_SetAxeOffset(uint8_t axe,int16_t offset) 00004 { 00005 uint8_t tmp[2]; 00006 tmp[0]=offset; 00007 tmp[1]=offset>>8; 00008 if(LIS3MDL_IO_Write(tmp, 5+2*axe, 2)!= MAGNETO_OK) 00009 return MAGNETO_ERROR; 00010 else 00011 return MAGNETO_OK; 00012 }
Generated on Thu Jul 21 2022 13:01:43 by
1.7.2