ADXL345_SPI.cpp
/**
 * Constructor.
 * 
 * @param clk The GPIO the clock signal is wired to.
 * @param mosi The GPIO the MOSI (Master Out Slave In) signal is wired to.
 * @param miso The GPIO the MISO (Master In Slave Out) signal is wired to.
 * @param cs The GPIO the CS (Chip Select) signal is wired to.
 * @param range The range (+ or -) that the accelerometer will measure.
 */
Constructor.

@param clk The GPIO the clock signal is wired to.
@param mosi The GPIO the MOSI (Master Out Slave In) signal is wired to.
@param miso The GPIO the MISO (Master In Slave Out) signal is wired to.
@param cs The GPIO the CS (Chip Select) signal is wired to.
@param range The range (+ or -) that the accelerometer will measure.
Constructor . @param clk The GPIO the clock signal is wired to . @param mosi The GPIO the MOSI ( Master Out Slave In ) signal is wired to . @param miso The GPIO the MISO ( Master In Slave Out ) signal is wired to . @param cs The GPIO the CS ( Chip Select ) signal is wired to . @param range The range ( + or - ) that the accelerometer will measure .
ADXL345_SPI::ADXL345_SPI(DigitalOutput *clk, DigitalOutput *mosi, DigitalInput *miso,
	DigitalOutput *cs, DataFormat_Range range)
	: m_clk (NULL)
	, m_mosi (NULL)
	, m_miso (NULL)
	, m_cs (NULL)
	, m_spi (NULL)
{
	Init(clk, mosi, miso, cs, range);
}
ADXL345_SPI :: ADXL345_SPI ( DigitalOutput * clk , DigitalOutput * mosi , DigitalInput * miso , DigitalOutput * cs , DataFormat_Range range ) : m_clk ( NULL ) , m_mosi ( NULL ) , m_miso ( NULL ) , m_cs ( NULL ) , m_spi ( NULL ) { Init ( clk , mosi , miso , cs , range ) ; }
Constructor.
Constructor .