libctru  v1.6.0
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  */
11 Result cfgnorInit(u8 value);
12 
13 /// Exits CFGNOR
14 void 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  */
21 Result cfgnorDumpFlash(u32 *buf, u32 size);
22 
23 /**
24  * @brief Writes the NOR flash.
25  * @param buf Buffer to write from.
26  * @param size Size of the buffer.
27  */
28 Result cfgnorWriteFlash(u32 *buf, u32 size);
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  */
45 Result 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  */
53 Result CFGNOR_WriteData(u32 offset, u32 *buf, u32 size);
s32 Result
Function result.
Definition: types.h:42
Result cfgnorInit(u8 value)
Initializes CFGNOR.
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
Result CFGNOR_ReadData(u32 offset, u32 *buf, u32 size)
Reads data from NOR.
Result CFGNOR_Initialize(u8 value)
Initializes the CFGNOR session.
uint32_t u32
32-bit unsigned integer
Definition: types.h:23
void cfgnorExit(void)
Exits CFGNOR.
Result cfgnorDumpFlash(u32 *buf, u32 size)
Dumps the NOR flash.
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.