SimpleFOClibrary  2.1
MagneticSensorSPI.cpp File Reference

Go to the source code of this file.

Variables

MagneticSensorSPIConfig_s AS5147_SPI
 
MagneticSensorSPIConfig_s AS5048_SPI = AS5147_SPI
 
MagneticSensorSPIConfig_s AS5047_SPI = AS5147_SPI
 
MagneticSensorSPIConfig_s MA730_SPI
 

Variable Documentation

◆ AS5047_SPI

Definition at line 15 of file MagneticSensorSPI.cpp.

◆ AS5048_SPI

Definition at line 14 of file MagneticSensorSPI.cpp.

◆ AS5147_SPI

Initial value:
= {
.spi_mode = SPI_MODE1,
.clock_speed = 1000000,
.bit_resolution = 14,
.angle_register = 0x3FFF,
.data_start_bit = 13,
.command_rw_bit = 14,
.command_parity_bit = 15
}

Typical configuration for the 14bit AMS AS5147 magnetic sensor over SPI interface

Definition at line 4 of file MagneticSensorSPI.cpp.

◆ MA730_SPI

Initial value:
= {
.spi_mode = SPI_MODE0,
.clock_speed = 1000000,
.bit_resolution = 14,
.angle_register = 0x0000,
.data_start_bit = 15,
.command_rw_bit = 0,
.command_parity_bit = 0
}

Typical configuration for the 14bit MonolithicPower MA730 magnetic sensor over SPI interface

Definition at line 18 of file MagneticSensorSPI.cpp.