#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 |
Definition at line 176 of file motion-module.h.
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] |
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.
Definition at line 173 of file motion-module.cpp.
Definition at line 199 of file motion-module.cpp.
Definition at line 148 of file motion-module.cpp.
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.
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.
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.