|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.SensorBase
edu.wpi.first.wpilibj.ADXL345_SPI
public class ADXL345_SPI
| Nested Class Summary | |
|---|---|
static class |
ADXL345_SPI.AllAxes
|
static class |
ADXL345_SPI.Axes
|
static class |
ADXL345_SPI.DataFormat_Range
|
| Field Summary |
|---|
| Fields inherited from class edu.wpi.first.wpilibj.SensorBase |
|---|
kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond |
| Constructor Summary | |
|---|---|
ADXL345_SPI(DigitalOutput cs,
ADXL345_SPI.DataFormat_Range range)
Constructor. |
|
ADXL345_SPI(DigitalOutput clk,
DigitalOutput mosi,
DigitalInput miso,
DigitalOutput cs,
ADXL345_SPI.DataFormat_Range range)
Constructor. |
|
ADXL345_SPI(int slot,
int csChannel,
ADXL345_SPI.DataFormat_Range range)
Constructor. |
|
ADXL345_SPI(int slot,
int clkChannel,
int mosiChannel,
int misoChannel,
int csChannel,
ADXL345_SPI.DataFormat_Range range)
Constructor. |
|
| Method Summary | |
|---|---|
void |
free()
Free the resources used by this object |
double |
getAcceleration(ADXL345_SPI.Axes axis)
Get the acceleration of one axis in Gs. |
ADXL345_SPI.AllAxes |
getAccelerations()
Get the acceleration of all axes in Gs. |
| Methods inherited from class edu.wpi.first.wpilibj.SensorBase |
|---|
checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ADXL345_SPI(DigitalOutput clk,
DigitalOutput mosi,
DigitalInput miso,
DigitalOutput cs,
ADXL345_SPI.DataFormat_Range range)
clk - The clock channelmosi - The mosi (output) channelmiso - The miso (input) channelcs - The chip select channelrange - The range (+ or -) that the accelerometer will measure.
public ADXL345_SPI(int slot,
int clkChannel,
int mosiChannel,
int misoChannel,
int csChannel,
ADXL345_SPI.DataFormat_Range range)
slot - The module of the digital IO for the deviceclkChannel - The channel number for the clk channelmosiChannel - The channel number for the mosi (output) channelmisoChannel - The channel number for the miso (input) channelcsChannel - The channel number for the chip select channelrange - The range (+ or -) that the accelerometer will measure.
public ADXL345_SPI(DigitalOutput cs,
ADXL345_SPI.DataFormat_Range range)
cs - the chip select line for the SPI busrange - The range (+ or -) that the accelerometer will measure.
public ADXL345_SPI(int slot,
int csChannel,
ADXL345_SPI.DataFormat_Range range)
slot - The module of the digital output for the device's chip select pincsChannel - The channel for the digital output for the device's chip select pinrange - The range (+ or -) that the accelerometer will measure.| Method Detail |
|---|
public void free()
SensorBase
free in class SensorBasepublic double getAcceleration(ADXL345_SPI.Axes axis)
axis - The axis to read from.
public ADXL345_SPI.AllAxes getAccelerations()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||