Macros | Functions | Variables
threading.cpp File Reference
#include "example_utils.hpp"
#include <mip/definitions/commands_base.hpp>
#include <mip/definitions/commands_3dm.hpp>
#include <mip/definitions/data_sensor.hpp>
#include <thread>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <stdexcept>
#include <algorithm>
Include dependency graph for threading.cpp:

Go to the source code of this file.

Macros

#define USE_THREADS   1
 

Functions

void device_thread_loop (mip::DeviceInterface *device)
 
unsigned int display_progress ()
 
int main (int argc, const char *argv[])
 
void packet_callback (void *, const mip::Packet &packet, mip::Timestamp timestamp)
 
bool update_device (mip::DeviceInterface &device, mip::Timeout wait_time)
 

Variables

const unsigned int maxSamples = 50
 
volatile unsigned int numSamples = 0
 
volatile bool stop = false
 

Macro Definition Documentation

◆ USE_THREADS

#define USE_THREADS   1

Definition at line 78 of file threading.cpp.

Function Documentation

◆ device_thread_loop()

void device_thread_loop ( mip::DeviceInterface *  device)

Definition at line 49 of file threading.cpp.

◆ display_progress()

unsigned int display_progress ( )

Definition at line 19 of file threading.cpp.

◆ main()

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

Definition at line 80 of file threading.cpp.

◆ packet_callback()

void packet_callback ( void *  ,
const mip::Packet &  packet,
mip::Timestamp  timestamp 
)

Definition at line 44 of file threading.cpp.

◆ update_device()

bool update_device ( mip::DeviceInterface &  device,
mip::Timeout  wait_time 
)

Definition at line 63 of file threading.cpp.

Variable Documentation

◆ maxSamples

const unsigned int maxSamples = 50

Definition at line 15 of file threading.cpp.

◆ numSamples

volatile unsigned int numSamples = 0

Definition at line 16 of file threading.cpp.

◆ stop

volatile bool stop = false

Definition at line 17 of file threading.cpp.



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