libctru v2.5.0
Loading...
Searching...
No Matches
cfgnor.h
Go to the documentation of this file.
1/**
2 * @file cfgnor.h
3 * @brief CFGNOR service.
4 */
5#pragma once
6
7/**
8 * @brief Initializes CFGNOR.
9 * @param value Unknown, usually 1.
10 */
12
13/// Exits CFGNOR
14void cfgnorExit(void);
15
16/**
17 * @brief Dumps the NOR flash.
18 * @param buf Buffer to dump to.
19 * @param size Size of the buffer.
20 */
22
23/**
24 * @brief Writes the NOR flash.
25 * @param buf Buffer to write from.
26 * @param size Size of the buffer.
27 */
29
30/**
31 * @brief Initializes the CFGNOR session.
32 * @param value Unknown, usually 1.
33 */
35
36/// Shuts down the CFGNOR session.
38
39/**
40 * @brief Reads data from NOR.
41 * @param offset Offset to read from.
42 * @param buf Buffer to read data to.
43 * @param size Size of the buffer.
44 */
45Result CFGNOR_ReadData(u32 offset, u32 *buf, u32 size);
46
47/**
48 * @brief Writes data to NOR.
49 * @param offset Offset to write to.
50 * @param buf Buffer to write data from.
51 * @param size Size of the buffer.
52 */
53Result CFGNOR_WriteData(u32 offset, u32 *buf, u32 size);
Result cfgnorDumpFlash(u32 *buf, u32 size)
Dumps the NOR flash.
void cfgnorExit(void)
Exits CFGNOR.
Result cfgnorInit(u8 value)
Initializes CFGNOR.
Result CFGNOR_Shutdown(void)
Shuts down the CFGNOR session.
Result cfgnorWriteFlash(u32 *buf, u32 size)
Writes the NOR flash.
Result CFGNOR_WriteData(u32 offset, u32 *buf, u32 size)
Writes data to NOR.
Result CFGNOR_ReadData(u32 offset, u32 *buf, u32 size)
Reads data from NOR.
Result CFGNOR_Initialize(u8 value)
Initializes the CFGNOR session.
uint8_t u8
would be nice if newlib had this already
Definition types.h:21
s32 Result
Function result.
Definition types.h:42
uint32_t u32
32-bit unsigned integer
Definition types.h:23