|
Monado OpenXR Runtime
|
ContactGlove device calibration implementation. More...
#include "xrt/xrt_defines.h"#include "util/u_file.h"#include "contactglove_calibration.h"#include "contactglove_internal.h"#include <errno.h>
Macros | |
| #define | CONTACTGLOVE_CONFIG_DIR "contactglove" |
| #define | WIZARD_TRACE(wizard, ...) U_LOG_IFL_T(wizard->log_level, __VA_ARGS__) |
| #define | WIZARD_DEBUG(wizard, ...) U_LOG_IFL_D(wizard->log_level, __VA_ARGS__) |
| #define | WIZARD_INFO(wizard, ...) U_LOG_IFL_I(wizard->log_level, __VA_ARGS__) |
| #define | WIZARD_WARN(wizard, ...) U_LOG_IFL_W(wizard->log_level, __VA_ARGS__) |
| #define | WIZARD_ERROR(wizard, ...) U_LOG_IFL_E(wizard->log_level, __VA_ARGS__) |
| #define | READ_U8(out) |
| #define | READ_LE16(out) |
| #define | READ_LE32(out) |
| #define | READ_BE32(out) |
| #define | WRITE_U8(value) |
| #define | WRITE_LE16(out) |
| #define | WRITE_LE32(out) |
| #define | WRITE_BE32(out) |
| #define | ADD_CALIBRATION(calibration, prefix) |
Functions | |
| static void | get_config_filename (char *out_name, size_t out_name_size, enum xrt_hand hand, const char *device_serial) |
| static FILE * | open_config_file (struct contactglove_calibration_wizard *wizard, const char *mode) |
| static void | fill_default_calib (struct contactglove_calibration *calibration) |
| static bool | contactglove_calibration_load_file (struct contactglove_calibration_wizard *wizard) |
| static int | fwrite_all (FILE *f, void *raw_ptr, size_t n) |
| static bool | contactglove_calibration_write_file (struct contactglove_calibration_wizard *wizard) |
| static void | contactglove_calibration_wizard_set_step (struct contactglove_calibration_wizard *wizard, enum contactglove_calibration_wizard_step step) |
| static void | start_button_cb (void *ptr) |
| void | contactglove_calibration_wizard_init (struct contactglove_calibration_wizard *wizard, struct contactglove_device *glove) |
| void | contactglove_calibration_wizard_deinit (struct contactglove_calibration_wizard *wizard) |
| void | contactglove_calibration_wizard_start (struct contactglove_calibration_wizard *wizard, bool calibrating_magnetra2) |
| void | contactglove_calibration_wizard_push_button (struct contactglove_calibration_wizard *wizard, bool button) |
| void | contactglove_calibration_wizard_push_flex_sensors (struct contactglove_calibration_wizard *wizard, const uint16_t *adc_values) |
| void | contactglove_calibration_wizard_push_joystick (struct contactglove_calibration_wizard *wizard, uint8_t adc_x, uint8_t adc_y) |
| void | contactglove_calibration_wizard_push_trigger (struct contactglove_calibration_wizard *wizard, uint8_t adc) |
ContactGlove device calibration implementation.
| #define ADD_CALIBRATION | ( | calibration, | |
| prefix | |||
| ) |
| #define READ_BE32 | ( | out | ) |
| #define READ_LE16 | ( | out | ) |
| #define READ_LE32 | ( | out | ) |
| #define READ_U8 | ( | out | ) |
| #define WRITE_BE32 | ( | out | ) |
| #define WRITE_LE16 | ( | out | ) |
| #define WRITE_LE32 | ( | out | ) |
| #define WRITE_U8 | ( | value | ) |