GX4-45_Test.h
Go to the documentation of this file.
00001 
00002 //
00003 // GX4-45_Test.h 
00004 //
00005 // Test program for the GX4-45
00006 //
00007 // Notes:  This program runs through most of the sdk functions supported
00008 //         by the GX4-45.  It does not permanently alter any of the device
00009 //         settings.
00010 //
00011 //
00012 // Written By: Nathan Miller and Gregg Carpenter
00013 // 
00015 //
00018 //
00028 
00029 //
00031 
00032 
00033 #ifndef _GX4_45_TEST_H
00034 #define _GX4_45_TEST_H
00035 
00037 //
00038 // Includes
00039 //
00041 
00042 #include "mip_sdk.h"
00043 #include "byteswap_utilities.h"
00044 #include "mip_gx4_imu.h"
00045 #include "mip_gx4_45.h"
00046 #include <stdio.h>
00047 #include <unistd.h>
00048 
00050 //
00051 // Defines
00052 //
00054 
00055 #define MIP_SDK_GX4_45_IMU_STANDARD_MODE        0x01
00056 #define MIP_SDK_GX4_45_IMU_DIRECT_MODE  0x02
00057 
00058 #define NUM_COMMAND_LINE_ARGUMENTS 3
00059 
00060 #define DEFAULT_PACKET_TIMEOUT_MS  1000 //milliseconds
00061 
00062 //macro to cause Sleep call to behave as it does for windows
00063 #define Sleep(x) usleep(x*1000.0)
00064 
00066 //
00067 // Function Prototypes
00068 //
00070 
00071 //Help Functions
00072 void print_header();
00073 void print_command_line_usage();
00074 void print_packet_stats();
00075 
00076 //MIP Parser Packet Callback Functions
00077 void filter_packet_callback(void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type);
00078 void ahrs_packet_callback(void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type);
00079 void gps_packet_callback(void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type);
00080 
00081 //Hardware specific status functions
00082 u16 mip_3dm_cmd_hw_specific_device_status(mip_interface *device_interface, u16 model_number, u8 status_selector, u8 *response_buffer);
00083 u16 mip_3dm_cmd_hw_specific_imu_device_status(mip_interface *device_interface, u16 model_number, u8 status_selector, u8 *response_buffer);
00084 
00085 #endif


microstrain_3dm_gx5_45
Author(s): Brian Bingham
autogenerated on Tue Apr 18 2017 02:59:09