Monado OpenXR Runtime
Loading...
Searching...
No Matches
vp2_status_report Struct Reference

Status report, sent every 50ms while VP2_FEATURE_EVENT_STATUS_REPORT is enabled. More...

#include <vp2/vp2_protocol.h>

Collaboration diagram for vp2_status_report:

Data Fields

uint8_t id
 VP2_REPORT_ID_STATUS
 
__le16 sub_id
 VP2_COMMAND_STATUS_REPORT
 
uint8_t size
 Size of the rest of the report.
 
__le32 ipd_adc
 Raw IPD slider position, only the low 16 bits are used.
 
uint8_t system_button
 1 while pressed
 
uint8_t audio_button
 enum vp2_audio_button
 
uint8_t audio_route_mode
 vp2_feature_event::audio_route_mode
 
uint8_t audio_profile_index
 vp2_feature_event::audio_profile_index
 
__le16 proximity_trend
 enum vp2_proximity_trend
 
__le16 proximity
 See VP2_PROXIMITY_THRESHOLD.
 
__le16 ipd
 See VP2_IPD_UNIT_METERS, clamped to 5700..7050.
 
uint8_t reserved [38]
 Always 0.
 
uint8_t earphone
 1 in the codec's earphone mode, always 0 on most boards
 
__le32 thermal_adc
 Only the low 16 bits are used, see VP2_FEATURE_EVENT_THERMAL_WATCHDOG.
 
uint8_t wireless_auth
 1 while wireless authentication is active, always 0 on a cable
 
__be16 nonce
 Low 16 bits of thermal_adc times the MCU uptime in ms, see VP2_FEATURE_EVENT_WIRELESS_AUTH.
 

Detailed Description

Status report, sent every 50ms while VP2_FEATURE_EVENT_STATUS_REPORT is enabled.

Field Documentation

◆ audio_button

uint8_t vp2_status_report::audio_button

enum vp2_audio_button

Referenced by get_raw_buttons().

◆ audio_profile_index

uint8_t vp2_status_report::audio_profile_index

◆ audio_route_mode

uint8_t vp2_status_report::audio_route_mode

◆ earphone

uint8_t vp2_status_report::earphone

1 in the codec's earphone mode, always 0 on most boards

◆ id

uint8_t vp2_status_report::id

◆ ipd

__le16 vp2_status_report::ipd

See VP2_IPD_UNIT_METERS, clamped to 5700..7050.

Referenced by status_thread_runner().

◆ ipd_adc

__le32 vp2_status_report::ipd_adc

Raw IPD slider position, only the low 16 bits are used.

◆ nonce

__be16 vp2_status_report::nonce

Low 16 bits of thermal_adc times the MCU uptime in ms, see VP2_FEATURE_EVENT_WIRELESS_AUTH.

◆ proximity

__le16 vp2_status_report::proximity

◆ proximity_trend

__le16 vp2_status_report::proximity_trend

enum vp2_proximity_trend

◆ reserved

uint8_t vp2_status_report::reserved[38]

Always 0.

◆ size

uint8_t vp2_status_report::size

Size of the rest of the report.

◆ sub_id

__le16 vp2_status_report::sub_id

◆ system_button

uint8_t vp2_status_report::system_button

1 while pressed

Referenced by get_raw_buttons().

◆ thermal_adc

__le32 vp2_status_report::thermal_adc

Only the low 16 bits are used, see VP2_FEATURE_EVENT_THERMAL_WATCHDOG.

◆ wireless_auth

uint8_t vp2_status_report::wireless_auth

1 while wireless authentication is active, always 0 on a cable


The documentation for this struct was generated from the following file: