19 #define ADXL335_PORT ADC_PORT 20 #define ADXL335_ADC ADC_MODULE 22 #define ADXL335_SCALE 48 23 #define ADXL335_OFFSET1 2616 24 #define ADXL335_OFFSET2 30000 uint16_t adxl335_get_x_raw(void)
Returns the x channel output.
void adxl335_init(void)
Initializes the accelerometer module.
This module provides access to the ADC.
uint16_t adxl335_get_z_raw(void)
Returns the z channel output.
uint16_t adxl335_get_y_raw(void)
Returns the y channel output.
uint16_t adxl335_get_z(void)
Returns the Z channel output.
uint16_t adxl335_get_x(void)
Returns the X channel output.
uint16_t adxl335_get_y(void)
Returns the Y channel output.