Public Member Functions | Private Member Functions | Private Attributes | List of all members
rsimpl::motion_module::motion_module_control Class Reference

#include <motion-module.h>

Public Member Functions

void firmware_upgrade (void *data, int size)
 
 motion_module_control (uvc::device *device, std::timed_mutex &usbMutex)
 
void switch_to_iap ()
 
void switch_to_operational ()
 
void toggle_motion_module_events (bool on)
 
void toggle_motion_module_power (bool on)
 

Private Member Functions

void enter_state (mm_state new_state)
 
void i2c_iap_write (uint16_t slave_address, uint8_t *buffer, uint16_t len)
 
void impose (mm_request request, bool on)
 
 motion_module_control (const motion_module_control &)
 
void set_control (mm_request request, bool on)
 
void write_firmware (uint8_t *data, int size)
 

Private Attributes

uvc::device * device_handle
 
std::mutex mtx
 
bool power_state
 
motion_module_state state_handler
 
std::timed_mutex & usbMutex
 

Detailed Description

Definition at line 176 of file motion-module.h.

Constructor & Destructor Documentation

motion_module_control::motion_module_control ( uvc::device *  device,
std::timed_mutex &  usbMutex 
)

Definition at line 17 of file motion-module.cpp.

rsimpl::motion_module::motion_module_control::motion_module_control ( const motion_module_control )
private

Member Function Documentation

void motion_module_control::enter_state ( mm_state  new_state)
private

Definition at line 41 of file motion-module.cpp.

void motion_module_control::firmware_upgrade ( void data,
int  size 
)

Definition at line 261 of file motion-module.cpp.

void motion_module_control::i2c_iap_write ( uint16_t  slave_address,
uint8_t *  buffer,
uint16_t  len 
)
private

Definition at line 156 of file motion-module.cpp.

void motion_module_control::impose ( mm_request  request,
bool  on 
)
private

Definition at line 29 of file motion-module.cpp.

void motion_module_control::set_control ( mm_request  request,
bool  on 
)
private

Definition at line 116 of file motion-module.cpp.

void motion_module_control::switch_to_iap ( )

Definition at line 173 of file motion-module.cpp.

void motion_module_control::switch_to_operational ( )

Definition at line 199 of file motion-module.cpp.

void motion_module_control::toggle_motion_module_events ( bool  on)

Definition at line 148 of file motion-module.cpp.

void motion_module_control::toggle_motion_module_power ( bool  on)

Definition at line 138 of file motion-module.cpp.

void motion_module_control::write_firmware ( uint8_t *  data,
int  size 
)
private

Definition at line 213 of file motion-module.cpp.

Member Data Documentation

uvc::device* rsimpl::motion_module::motion_module_control::device_handle
private

Definition at line 193 of file motion-module.h.

std::mutex rsimpl::motion_module::motion_module_control::mtx
private

Definition at line 194 of file motion-module.h.

bool rsimpl::motion_module::motion_module_control::power_state
private

Definition at line 196 of file motion-module.h.

motion_module_state rsimpl::motion_module::motion_module_control::state_handler
private

Definition at line 192 of file motion-module.h.

std::timed_mutex& rsimpl::motion_module::motion_module_control::usbMutex
private

Definition at line 195 of file motion-module.h.


The documentation for this class was generated from the following files:


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19