Functions | Variables
watch_imu.c File Reference
#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>
Include dependency graph for watch_imu.c:

Go to the source code of this file.

Functions

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)
 

Variables

mip_interface device
 
uint8_t parse_buffer [1024]
 
serial_port port
 
mip_sensor_scaled_accel_data scaled_accel
 
time_t startTime
 

Function Documentation

◆ customLog()

void customLog ( void *  user,
mip_log_level  level,
const char *  fmt,
va_list  args 
)

Definition at line 39 of file watch_imu.c.

◆ get_current_timestamp()

timestamp_type get_current_timestamp ( )

Definition at line 106 of file watch_imu.c.

◆ handleAccel()

void handleAccel ( void *  user,
const mip_field field,
timestamp_type  timestamp 
)

Definition at line 68 of file watch_imu.c.

◆ handleGyro()

void handleGyro ( void *  user,
const mip_field field,
timestamp_type  timestamp 
)

Definition at line 85 of file watch_imu.c.

◆ handleMag()

void handleMag ( void *  user,
const mip_field field,
timestamp_type  timestamp 
)

Definition at line 94 of file watch_imu.c.

◆ handlePacket()

void handlePacket ( void *  unused,
const mip_packet packet,
timestamp_type  timestamp 
)

Definition at line 53 of file watch_imu.c.

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Definition at line 152 of file watch_imu.c.

◆ mip_interface_user_recv_from_device()

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 
)

Definition at line 117 of file watch_imu.c.

◆ mip_interface_user_send_to_device()

bool mip_interface_user_send_to_device ( mip_interface device,
const uint8_t *  data,
size_t  length 
)

Definition at line 129 of file watch_imu.c.

◆ open_port()

bool open_port ( const char *  name,
uint32_t  baudrate 
)

Definition at line 141 of file watch_imu.c.

◆ usage()

int usage ( const char *  argv0)

Definition at line 146 of file watch_imu.c.

Variable Documentation

◆ device

mip_interface device

Definition at line 36 of file watch_imu.c.

◆ parse_buffer

uint8_t parse_buffer[1024]

Definition at line 35 of file watch_imu.c.

◆ port

Definition at line 34 of file watch_imu.c.

◆ scaled_accel

Definition at line 37 of file watch_imu.c.

◆ startTime

time_t startTime

Definition at line 104 of file watch_imu.c.



microstrain_inertial_driver
Author(s): Brian Bingham, Parker Hannifin Corp
autogenerated on Wed Mar 22 2023 02:35:07