Monado OpenXR Runtime
Loading...
Searching...
No Matches
pimax_p2.h File Reference

Pimax P2 driver header - inherits xrt_device. More...

#include "xrt/xrt_device.h"
#include "os/os_threading.h"
#include "util/u_var.h"
#include <hidapi/hidapi.h>
Include dependency graph for pimax_p2.h:

Go to the source code of this file.

Data Structures

struct  pimax_p2_display_properties
 
struct  pimax_p2_model_funcs
 
struct  pimax_p2_model_config
 
struct  pimax_p2_view_mesh
 
struct  pimax_p2_mesh
 
struct  pimax_p2_mesh_set
 
struct  pimax_p2_device
 
struct  pimax_p2_device::pimax_p2_device_config
 

Macros

#define PIMAX_P2_MODEL_NAME_LENGTH   32
 

Typedefs

typedef void(* pimax_p2_display_get_props_func_t) (struct pimax_p2_device *dev, struct pimax_p2_display_properties *out_props)
 
typedef void(* pimax_p2_init_display_func_t) (struct pimax_p2_device *dev)
 

Functions

bool pimax_p2_init (struct pimax_p2_device **pdev)
 Initializes the Pimax HID device, enables the displays, and allocates and populates pdev with data.
 
bool pimax_p2_setup_hmd (struct pimax_p2_device *pdev, struct xrt_hmd_parts *hmd)
 Fills the xrt_hmd_parts with data.
 
xrt_result_t pimax_p2_get_view_poses (struct pimax_p2_device *dev, const struct xrt_vec3 *default_eye_relation, struct xrt_hmd_parts *hmd, uint32_t view_count, struct xrt_fov *out_fovs, struct xrt_pose *out_poses)
 Like xrt_device->get_view_poses, but does not fill in the head relation.
 
xrt_result_t pimax_p2_compute_distortion_from_mesh (struct pimax_p2_device *dev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result)
 Compute distortion, using the mesh loaded by init.
 
xrt_result_t pimax_p2_get_brightness (struct pimax_p2_device *dev, float *out_brightness)
 Get backlight brightness from 0 to 1.
 
xrt_result_t pimax_p2_set_brightness (struct pimax_p2_device *dev, float brightness, bool relative)
 Set backlight brightness from 0 to 1.
 
void pimax_p2_destroy (struct pimax_p2_device *dev)
 Clean up a pimax_p2_device.
 

Detailed Description

Pimax P2 driver header - inherits xrt_device.

Author
Coreforge BC549.nosp@m.b@gm.nosp@m.ail.c.nosp@m.om