10 #include "../services/sm.h" 11 #include "../services/hid.h" 52 Result irsInitialize(
void);
55 Service* irsGetSessionService(
void);
56 void* irsGetSharedmemAddr(
void);
61 Result irsGetIrCameraHandle(
u32 *IrCameraHandle, HidControllerID
id);
u8 sensor_res
IR Sensor resolution. 0: 240x320, 1: 120x160, 2: 60x80.
Definition: irs.h:44
void irsGetDefaultImageTransferProcessorConfig(IrsImageTransferProcessorConfig *config)
Gets the default configuration for Image Transfer mode.
#define PACKED
Packs a struct (and other types?) so it won't include padding bytes.
Definition: types.h:56
uint16_t u16
16-bit unsigned integer.
Definition: types.h:22
u32 sensor_res
IR Sensor resolution. 0: 240x320, 1: 120x160, 2: 60x80.
Definition: irs.h:34
Service object structure.
Definition: sm.h:23
u32 Result
Function error code result type.
Definition: types.h:46
u8 color_invert
Inverts the colors of the captured image. 0: Normal image, 1: Negative image.
Definition: irs.h:41
uint8_t u8
8-bit unsigned integer.
Definition: types.h:21
uint64_t u64
64-bit unsigned integer.
Definition: types.h:24
u8 digital_gain
IR sensor signal's digital gain.
Definition: irs.h:40
uint32_t u32
32-bit unsigned integer.
Definition: types.h:23
u64 exposure
IR Sensor exposure time in nanoseconds.
Definition: irs.h:29
u32 ir_leds
Controls the IR leds. 0: All leds, 1: Bright group, 2: Dim group, 3: None.
Definition: irs.h:30
Result irsRunImageTransferProcessor(u32 IrCameraHandle, IrsImageTransferProcessorConfig *config, size_t size)
Start ImageTransferProcessor.
u8 color_invert
Inverts the colors of the captured image. 0: Normal image, 1: Negative image.
Definition: irs.h:32
Result irsActivateIrsensor(bool activate)
(De)activate the IR sensor, this is automatically used by irsExit(). Must be called after irsInitiali...
Result irsSuspendImageProcessor(u32 IrCameraHandle)
"Suspend" ImageTransferProcessor.
u32 digital_gain
IR sensor signal's digital gain.
Definition: irs.h:31
u8 ir_leds
Controls the IR leds. 0: All leds, 1: Bright group, 2: Dim group, 3: None.
Definition: irs.h:39
u64 exposure
IR Sensor exposure time in nanoseconds.
Definition: irs.h:38
Result irsStopImageProcessor(u32 IrCameraHandle)
Stop ImageTransferProcessor.