libctru
v2.4.1
|
CODEC Hardware Check service. More...
#include <3ds/types.h>
Go to the source code of this file.
Enumerations | |
enum | CodecI2sLine { CODEC_I2S_LINE_1 , CODEC_I2S_LINE_2 } |
I2S line enumeration. More... | |
Functions | |
Result | cdcChkInit (void) |
Initializes CDCCHK. | |
void | cdcChkExit (void) |
Exits CDCCHK. | |
Handle * | cdcChkGetSessionHandle (void) |
Gets a pointer to the current cdc:CHK session handle. More... | |
Result | CDCCHK_ReadRegisters1 (u8 pageId, u8 initialRegAddr, void *outData, size_t size) |
Reads multiple registers from the CODEC, using the old SPI hardware interface and a 4MHz baudrate. More... | |
Result | CDCCHK_ReadRegisters2 (u8 pageId, u8 initialRegAddr, void *outData, size_t size) |
Reads multiple registers from the CODEC, using the new SPI hardware interface and a 16MHz baudrate. More... | |
Result | CDCCHK_WriteRegisters1 (u8 pageId, u8 initialRegAddr, const void *data, size_t size) |
Writes multiple registers to the CODEC, using the old SPI hardware interface and a 4MHz baudrate. More... | |
Result | CDCCHK_WriteRegisters2 (u8 pageId, u8 initialRegAddr, const void *data, size_t size) |
Writes multiple registers to the CODEC, using the new SPI hardware interface and a 16MHz baudrate. More... | |
Result | CDCCHK_ReadNtrPmicRegister (u8 *outData, u8 regAddr) |
Reads a single register from the NTR PMIC. More... | |
Result | CDCCHK_WriteNtrPmicRegister (u8 regAddr, u8 data) |
Writes a single register from the NTR PMIC. More... | |
Result | CDCCHK_SetI2sVolume (CodecI2sLine i2sLine, s8 volume) |
Sets the DAC volume level for the specified I2S line. More... | |
CODEC Hardware Check service.
enum CodecI2sLine |
Reads a single register from the NTR PMIC.
[out] | outData | Where to read the data to (1 byte). |
regAddr | Register address. |
Reads multiple registers from the CODEC, using the old SPI hardware interface and a 4MHz baudrate.
pageId | CODEC Page ID. | |
initialRegAddr | Address of the CODEC register to start with. | |
[out] | outData | Where to write the read data to. |
size | Number of registers to read (bytes to read, max. 64). |
Reads multiple registers from the CODEC, using the new SPI hardware interface and a 16MHz baudrate.
pageId | CODEC Page ID. | |
initialRegAddr | Address of the CODEC register to start with. | |
[out] | outData | Where to read the data to. |
size | Number of registers to read (bytes to read, max. 64). |
Result CDCCHK_SetI2sVolume | ( | CodecI2sLine | i2sLine, |
s8 | volume | ||
) |
Sets the DAC volume level for the specified I2S line.
i2sLine | I2S line to set the volume for. |
volume | Volume level (-128 to 0). |
Writes a single register from the NTR PMIC.
regAddr | Register address. |
data | Data to write (1 byte). |
Writes multiple registers to the CODEC, using the old SPI hardware interface and a 4MHz baudrate.
pageId | CODEC Page ID. |
initialRegAddr | Address of the CODEC register to start with. |
data | Where to read the data to write from. |
size | Number of registers to write (bytes to read, max. 64). |
Writes multiple registers to the CODEC, using the new SPI hardware interface and a 16MHz baudrate.
pageId | CODEC Page ID. |
initialRegAddr | Address of the CODEC register to start with. |
data | Where to read the data to write from. |
size | Number of registers to write (bytes to read, max. 64). |
Handle* cdcChkGetSessionHandle | ( | void | ) |
Gets a pointer to the current cdc:CHK session handle.