overte/interface/external/MotionDriver/include/inv_tty.h
Andrzej Kapolka a116f5a636 Use InvenSense code to handle the rather complicated business of talking the
sensor into giving us the compass reading.  We're getting it now, but I still
have to figure out how to incorporate it.
2013-07-09 17:28:23 -07:00

22 lines
617 B
C

//
// inv_tty.h
// interface
//
// Created by Andrzej Kapolka on 7/9/13.
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
//
#ifndef __interface__inv_tty__
#define __interface__inv_tty__
void tty_set_file_descriptor(int file_descriptor);
int tty_i2c_write(unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char const *data);
int tty_i2c_read(unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char *data);
void tty_delay_ms(unsigned long num_ms);
void tty_get_ms(unsigned long *count);
#endif /* defined(__interface__inv_tty__) */