no-OS
|
#include <stdlib.h>
#include <stdio.h>
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "iio_adxl313.h"
#include "adxl313.h"
Macros | |
#define | SCALE_FACTOR 1000000000UL |
#define | MIN_SHIFT 9 |
#define | ADXL313_ACCEL_CHANNEL(index, reg, axis) |
Enumerations | |
enum | adxl313_iio_accel_chans { CHAN_X = 0, CHAN_Y = 1, CHAN_Z = 2 } |
Functions | |
int | adxl313_read (struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *read_data) |
int | adxl313_write (struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data) |
int | adxl313_iio_init (struct adxl313_iio_dev **iio_dev, struct adxl313_iio_dev_init_param *init_param) |
int | adxl313_iio_remove (struct adxl313_iio_dev *desc) |
#define ADXL313_ACCEL_CHANNEL | ( | index, | |
reg, | |||
axis | |||
) |
#define MIN_SHIFT 9 |
#define SCALE_FACTOR 1000000000UL |
int adxl313_iio_init | ( | struct adxl313_iio_dev ** | iio_dev, |
struct adxl313_iio_dev_init_param * | init_param | ||
) |
int adxl313_iio_remove | ( | struct adxl313_iio_dev * | desc | ) |
int adxl313_read | ( | struct adxl313_dev * | dev, |
uint8_t | base_address, | ||
uint16_t | size, | ||
uint8_t * | read_data | ||
) |
int adxl313_write | ( | struct adxl313_dev * | dev, |
uint8_t | base_address, | ||
uint16_t | size, | ||
uint8_t * | write_data | ||
) |