Monado OpenXR Runtime
rift_s_radio.h File Reference

Oculus Rift S HMD Radio management interface. More...

#include "os/os_hid.h"
#include "xrt/xrt_defines.h"
Include dependency graph for rift_s_radio.h:

Go to the source code of this file.

Data Structures

struct  rift_s_radio_state
 

Typedefs

typedef struct rift_s_radio_command rift_s_radio_command
 
typedef struct rift_s_radio_state rift_s_radio_state
 
typedef void(* rift_s_radio_completion_fn) (bool success, uint8_t *response_bytes, int response_bytes_len, void *cb_data)
 

Functions

void rift_s_radio_state_init (rift_s_radio_state *state)
 
void rift_s_radio_state_clear (rift_s_radio_state *state)
 
void rift_s_radio_update (rift_s_radio_state *state, struct os_hid_device *hid)
 
void rift_s_radio_queue_command (rift_s_radio_state *state, const uint64_t device_id, const uint8_t *cmd_bytes, const int cmd_bytes_len, rift_s_radio_completion_fn cb, void *cb_data)
 
void rift_s_radio_get_json_block (rift_s_radio_state *state, const uint64_t device_id, rift_s_radio_completion_fn cb, void *cb_data)
 

Detailed Description

Oculus Rift S HMD Radio management interface.

Functions for serialising requests to communicate with Touch controllers over the HMDs wireless radio link, collecting responses and delivering them back via callbacks.

Ported from OpenHMD

Author
Jan Schmidt jan@c.nosp@m.entr.nosp@m.icula.nosp@m.r.co.nosp@m.m