Display services: Difference between revisions

No edit summary
(2 intermediate revisions by the same user not shown)
Line 226: Line 226:


== GetHdcpServiceObject ==
== GetHdcpServiceObject ==
No input, returns a [[#IHdcpController]].
No input. Returns a [[#IHdcpController]].


= IHdcpController =
= IHdcpController =
Line 253: Line 253:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || InitializeOld
| 0 || [[#InitializeOld]]
|-
|-
| 1 || FinalizeOld
| 1 || [[#FinalizeOld]]
|-
|-
| 2 || SetAndWaitOld
| 2 || [[#SetAndWaitOld]]
|-
|-
| 3 || GetOld
| 3 || [[#GetOld]]
|-
|-
| 4 || Initialize
| 4 || [[#Initialize]]
|-
|-
| 5 || Finalize
| 5 || [[#Finalize]]
|-
|-
| 6 || SetAndWait
| 6 || [[#SetAndWait]]
|-
|-
| 7 || Get
| 7 || [[#Get]]
|}
|}
== InitializeOld ==
Takes an input [[#Module]], an input [[#Priority]] and an input u32 '''EventClearMode'''. No output.
== FinalizeOld ==
Takes an input [[#Module]]. No output.
== SetAndWaitOld ==
Takes an input [[#Module]] and two input [[#Setting]] '''Min''' and '''Max'''. No output.
== GetOld ==
Takes an input [[#Module]]. Returns an output [[#Setting]] '''Current'''.
== Initialize ==
Same as [[#InitializeOld]], but returns an output u32 '''RequestId'''.
== Finalize ==
Same as [[#FinalizeOld]], but takes an input u32 '''RequestId''' instead of an input [[#Module]].
== SetAndWait ==
Same as [[#SetAndWaitOld]], but takes an input u32 '''RequestId''' instead of an input [[#Module]].
== Get ==
Same as [[#GetOld]], but takes an input u32 '''RequestId''' instead of an input [[#Module]].


= vi:u =
= vi:u =
Line 860: Line 884:
== IsVrModeEnabled ==
== IsVrModeEnabled ==
No input. Returns an output u8 bool set by the above commands.
No input. Returns an output u8 bool set by the above commands.
= Module =
This is "nn::mmnv::Module".
{| class="wikitable" border="1"
|-
! Value || Name
|-
| 0 || Cpu
|-
| 1 || Gpu
|-
| 2 || Emc
|-
| 3 || SysBus
|-
| 4 || Mselect
|-
| 5 || Nvdec
|-
| 6 || Nvenc
|-
| 7 || Nvjpg
|-
| 8 || Test
|}
= Priority =
This is "nn::mmnv::Priority". This is an u32.
= Setting =
This is "nn::mmnv::Setting". This is an u32.


= DisplayInfo =
= DisplayInfo =
Line 945: Line 1,001:
Note: if bOverLimit=1 and the default ALS configuration is used, the measurement of fLux should not be considered and the actual max value depends on the type of light. Ranges from 12.5K - 17.5K.
Note: if bOverLimit=1 and the default ALS configuration is used, the measurement of fLux should not be considered and the actual max value depends on the type of light. Ranges from 12.5K - 17.5K.


= Resolution Handling =
= Notes =
== Resolution Handling ==
There doesn't seem to be a way to get the actual TV resolution while using the "Default" Display. Official apps just hard-code what resolution to use depending on the current [[AM_services|OperationMode]].
There doesn't seem to be a way to get the actual TV resolution while using the "Default" Display. Official apps just hard-code what resolution to use depending on the current [[AM_services|OperationMode]].


= Ambient Light Sensor Notes =
== Ambient Light Sensor ==
The BH1730 outputs 2 values. Visible light and IR light. This is then calculated through an algorithm that checks for Gain, Measurement time, filter qualities and ouputs lux (max correct measurement of 100K lux).
The BH1730 outputs 2 values. Visible light and IR light. This is then calculated through an algorithm that checks for Gain, Measurement time, filter qualities and ouputs lux (max correct measurement of 100K lux).
The default values are Gain 64x and ITIME of 38 (256 - 218). This allows for a max lux value of 17972 lux when visible light value is maximum and IR light is 0. When both of them are on their limit, the output is 1192 lux.
The default values are Gain 64x and ITIME of 38 (256 - 218). This allows for a max lux value of 17972 lux when visible light value is maximum and IR light is 0. When both of them are on their limit, the output is 1192 lux.