![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1
Dependencies: sMotor LIS3MDL X_NUCLEO_53L0A1
lis3mdl_class.cpp
- Committer:
- simens
- Date:
- 2019-05-23
- Revision:
- 0:ed3e71232bc7
File content as of revision 0:ed3e71232bc7:
#include <lis3mdl_class.h> MAGNETO_StatusTypeDef LIS3MDL::LIS3MDL_M_SetAxeOffset(uint8_t axe,int16_t offset) { uint8_t tmp[2]; tmp[0]=offset; tmp[1]=offset>>8; if(LIS3MDL_IO_Write(tmp, 5+2*axe, 2)!= MAGNETO_OK) return MAGNETO_ERROR; else return MAGNETO_OK; }