#include <mip/mip_dispatch.h>
#include <mip/mip_field.h>
#include <mip/mip_interface.h>
#include <mip/mip_result.h>
#include <mip/mip_types.h>
#include <mip/mip_logging.h>
#include <mip/utils/serialization.h>
#include <mip/definitions/descriptors.h>
#include <mip/definitions/commands_base.h>
#include <mip/definitions/commands_3dm.h>
#include <mip/definitions/data_sensor.h>
#include <mip/utils/serial_port.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include <stdarg.h>
#include <inttypes.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <termios.h>
Go to the source code of this file.
|
void | customLog (void *user, mip_log_level level, const char *fmt, va_list args) |
|
timestamp_type | get_current_timestamp () |
|
void | handleAccel (void *user, const mip_field *field, timestamp_type timestamp) |
|
void | handleGyro (void *user, const mip_field *field, timestamp_type timestamp) |
|
void | handleMag (void *user, const mip_field *field, timestamp_type timestamp) |
|
void | handlePacket (void *unused, const mip_packet *packet, timestamp_type timestamp) |
|
int | main (int argc, const char *argv[]) |
|
bool | mip_interface_user_recv_from_device (mip_interface *device, uint8_t *buffer, size_t max_length, timeout_type wait_time, size_t *out_length, timestamp_type *timestamp_out) |
|
bool | mip_interface_user_send_to_device (mip_interface *device, const uint8_t *data, size_t length) |
|
bool | open_port (const char *name, uint32_t baudrate) |
|
int | usage (const char *argv0) |
|
◆ customLog()
void customLog |
( |
void * |
user, |
|
|
mip_log_level |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ get_current_timestamp()
◆ handleAccel()
◆ handleGyro()
◆ handleMag()
◆ handlePacket()
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
◆ mip_interface_user_recv_from_device()
◆ mip_interface_user_send_to_device()
bool mip_interface_user_send_to_device |
( |
mip_interface * |
device, |
|
|
const uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
◆ open_port()
bool open_port |
( |
const char * |
name, |
|
|
uint32_t |
baudrate |
|
) |
| |
◆ usage()
int usage |
( |
const char * |
argv0 | ) |
|
◆ device
◆ parse_buffer
uint8_t parse_buffer[1024] |
◆ port
◆ scaled_accel
◆ startTime