Skyward boardcore
Loading...
Searching...
No Matches
VN100SpiDefs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Boardcore
 This file includes all the types the logdecoder script will decode.
 
namespace  Boardcore::VN100SpiDefs
 

Enumerations

enum  Boardcore::VN100SpiDefs::Registers : uint8_t { Boardcore::VN100SpiDefs::REG_MODEL_NUMBER = 1 , Boardcore::VN100SpiDefs::REG_QUAT_IMU_DATA = 15 , Boardcore::VN100SpiDefs::REG_SYNC = 32 , Boardcore::VN100SpiDefs::REG_TEMP_PRESS_DATA = 54 }
 Internal registers definitions. More...
 
enum  Boardcore::VN100SpiDefs::Commands : uint8_t { Boardcore::VN100SpiDefs::READ_REG = 1 , Boardcore::VN100SpiDefs::WRITE_REG = 2 }
 Commands available for the sensor. More...
 
enum class  Boardcore::VN100SpiDefs::VNErrors : uint8_t {
  Boardcore::VN100SpiDefs::NO_ERROR = 0 , Boardcore::VN100SpiDefs::HARD_FAULT = 1 , Boardcore::VN100SpiDefs::SERIAL_BUFFER_OVERFLOW = 2 , Boardcore::VN100SpiDefs::INVALID_CHECKSUM = 3 ,
  Boardcore::VN100SpiDefs::INVALID_COMMAND = 4 , Boardcore::VN100SpiDefs::NOT_ENOUGH_PARAMETERS = 5 , Boardcore::VN100SpiDefs::TOO_MANY_PARAMETERS = 6 , Boardcore::VN100SpiDefs::INVALID_PARAMETER = 7 ,
  Boardcore::VN100SpiDefs::INVALID_REGISTER = 8 , Boardcore::VN100SpiDefs::UNAUTHORIZED_ACCESS = 9 , Boardcore::VN100SpiDefs::WATCHDOG_RESET = 10 , Boardcore::VN100SpiDefs::OUTPUT_BUFFER_OVERFLOW = 11 ,
  Boardcore::VN100SpiDefs::INSUFFICIENT_BAUDRATE = 12 , Boardcore::VN100SpiDefs::ERROR_BUFFER_OVERFLOW = 255
}
 Error codes of the sensor. More...
 

Functions

struct Boardcore::VN100SpiDefs::__attribute__ ((packed)) SynchronizationData
 Data format of the synchronization control register, used for read and write operations.
 

Variables

const char *const Boardcore::VN100SpiDefs::MODEL_NUMBER = "VN-100"
 The expected model number to be red from the sensor.
 
const int Boardcore::VN100SpiDefs::MODEL_NUMBER_SIZE = 24
 Size of the buffer used to retrieve the model number from the sensor. It corresponds to the size of the register, see the datasheet for details.
 
const uint32_t Boardcore::VN100SpiDefs::SYNC_OUT_PULSE_WIDTH = 1000000
 Width of the SyncOut pulse in nanoseconds. Now is set to 1 millisecond.