1 /*
2  * Copyright (c) 2015 Eric Holland
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #ifndef __SENSOR_BUS_H
9 #define __SENSOR_BUS_H
10 
11 #include <sys/types.h>
12 #include <dev/accelerometer.h>
13 
14 status_t sensor_bus_init_early(void);
15 
16 void sensor_bus_init(void);
17 
18 status_t acc_read(uint8_t address, uint8_t *data);
19 
20 status_t acc_flush(uint8_t *tbuff, uint8_t *rbuff, uint8_t numbytes);
21 
22 
23 #endif
24