libnx
Data Structures | Functions
irs.h File Reference

HID IR sensor (irs) service IPC wrapper. More...

#include "../types.h"
#include "../services/sm.h"
#include "../services/hid.h"

Go to the source code of this file.

Data Structures

struct  IrsPackedMomentProcessorConfig
 
struct  IrsImageTransferProcessorConfig
 
struct  IrsPackedImageTransferProcessorConfig
 
struct  IrsImageTransferProcessorState
 

Functions

Result irsInitialize (void)
 
void irsExit (void)
 
ServiceirsGetSessionService (void)
 
void * irsGetSharedmemAddr (void)
 
Result irsActivateIrsensor (bool activate)
 (De)activate the IR sensor, this is automatically used by irsExit(). Must be called after irsInitialize() to activate the IR sensor.
 
Result irsGetIrCameraHandle (u32 *IrCameraHandle, HidControllerID id)
 
Result irsRunImageTransferProcessor (u32 IrCameraHandle, IrsImageTransferProcessorConfig *config, size_t size)
 Start ImageTransferProcessor. More...
 
Result irsGetImageTransferProcessorState (u32 IrCameraHandle, void *buffer, size_t size, IrsImageTransferProcessorState *state)
 
Result irsStopImageProcessor (u32 IrCameraHandle)
 Stop ImageTransferProcessor. More...
 
Result irsSuspendImageProcessor (u32 IrCameraHandle)
 "Suspend" ImageTransferProcessor. More...
 
void irsGetDefaultImageTransferProcessorConfig (IrsImageTransferProcessorConfig *config)
 Gets the default configuration for Image Transfer mode. More...
 

Detailed Description

HID IR sensor (irs) service IPC wrapper.

Author
yellows8

Function Documentation

void irsGetDefaultImageTransferProcessorConfig ( IrsImageTransferProcessorConfig config)

Gets the default configuration for Image Transfer mode.

Defaults are exposure 300us, IR LEDs all ON, 8x digital gain, normal image and resolution 240 x 320.

Result irsRunImageTransferProcessor ( u32  IrCameraHandle,
IrsImageTransferProcessorConfig config,
size_t  size 
)

Start ImageTransferProcessor.

Parameters
[in]IrCameraHandleCamera handle.
[in]configInput config.
[in]sizeWork-buffer size, must be 0x1000-byte aligned.
Note
Do not use if already started.
Result irsStopImageProcessor ( u32  IrCameraHandle)

Stop ImageTransferProcessor.

Do not use if already stopped. irsExit calls this with all IrCameraHandles which were not already used with irsStopImageProcessor.

Result irsSuspendImageProcessor ( u32  IrCameraHandle)

"Suspend" ImageTransferProcessor.

TODO: What does this really do?