NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
epson_imu::G362P Class Reference

#include <G362P.h>

Public Member Functions

 G362P (int fd_spi_dev, uint32_t spi_speed_hz, gpio::GPIO *gpio_data_ready, gpio::GPIO *gpio_reset)
 
 ~G362P (void)
 
bool IsReady (void)
 
bool HasHardError (void)
 
void HardReset (void)
 
void SoftReset (void)
 
bool SelfTest (void)
 
bool PowerOn (void)
 
void SetWindow (Window window)
 
bool SetFilter (Filter filter)
 
bool SetSamplingRate (SamplingRate sampling_rate)
 
bool StartSampling (void)
 
bool StopSampling (void)
 
void EnableUART (bool enable)
 
bool EnableOutput (bool flag, bool temp, bool gyro, bool accl, bool gpio, bool count, bool chksm)
 
bool SetOutputBits (OutputBits temp, OutputBits gyro, OutputBits accl)
 
void WriteRegister (Window window, uint8_t address, uint8_t value)
 
uint16_t ReadRegister (Window window, uint8_t address)
 
void DumpRegisters (void)
 
bool SetMode (Mode mode)
 
Mode GetMode (void)
 
bool ReadData (Data *data)
 
void PrintData (const Data &data)
 
uint16_t TransferWord (uint16_t word, uint16_t delay_usecs)
 

Constructor & Destructor Documentation

◆ G362P()

epson_imu::G362P::G362P ( int  fd_spi_dev,
uint32_t  spi_speed_hz,
gpio::GPIO gpio_data_ready,
gpio::GPIO gpio_reset 
)

◆ ~G362P()

epson_imu::G362P::~G362P ( void  )

Member Function Documentation

◆ DumpRegisters()

void epson_imu::G362P::DumpRegisters ( void  )

◆ EnableOutput()

bool epson_imu::G362P::EnableOutput ( bool  flag,
bool  temp,
bool  gyro,
bool  accl,
bool  gpio,
bool  count,
bool  chksm 
)

◆ EnableUART()

void epson_imu::G362P::EnableUART ( bool  enable)

◆ GetMode()

Mode epson_imu::G362P::GetMode ( void  )

◆ HardReset()

void epson_imu::G362P::HardReset ( void  )

◆ HasHardError()

bool epson_imu::G362P::HasHardError ( void  )

◆ IsReady()

bool epson_imu::G362P::IsReady ( void  )

◆ PowerOn()

bool epson_imu::G362P::PowerOn ( void  )

◆ PrintData()

void epson_imu::G362P::PrintData ( const Data data)

◆ ReadData()

bool epson_imu::G362P::ReadData ( Data data)

◆ ReadRegister()

uint16_t epson_imu::G362P::ReadRegister ( Window  window,
uint8_t  address 
)

◆ SelfTest()

bool epson_imu::G362P::SelfTest ( void  )

◆ SetFilter()

bool epson_imu::G362P::SetFilter ( Filter  filter)

◆ SetMode()

bool epson_imu::G362P::SetMode ( Mode  mode)

◆ SetOutputBits()

bool epson_imu::G362P::SetOutputBits ( OutputBits  temp,
OutputBits  gyro,
OutputBits  accl 
)

◆ SetSamplingRate()

bool epson_imu::G362P::SetSamplingRate ( SamplingRate  sampling_rate)

◆ SetWindow()

void epson_imu::G362P::SetWindow ( Window  window)

◆ SoftReset()

void epson_imu::G362P::SoftReset ( void  )

◆ StartSampling()

bool epson_imu::G362P::StartSampling ( void  )

◆ StopSampling()

bool epson_imu::G362P::StopSampling ( void  )

◆ TransferWord()

uint16_t epson_imu::G362P::TransferWord ( uint16_t  word,
uint16_t  delay_usecs 
)

◆ WriteRegister()

void epson_imu::G362P::WriteRegister ( Window  window,
uint8_t  address,
uint8_t  value 
)

The documentation for this class was generated from the following files: