libctr9
Nintendo 3DS ARM9 library
command_ctr.h
1 // Copyright 2014 Normmatt
2 // Licensed under GPLv2 or any later version
3 // Refer to the license.txt file included.
4 
5 #pragma once
6 
7 #include <stdint.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 void CTR_CmdReadSectorSD(uint8_t* aBuffer, uint32_t aSector);
14 void CTR_CmdReadData(uint32_t sector, uint32_t length, uint32_t blocks, void* buffer);
15 void CTR_CmdReadHeader(void* buffer);
16 uint32_t CTR_CmdGetSecureId(uint32_t rand1, uint32_t rand2);
17 void CTR_CmdSeed(uint32_t rand1, uint32_t rand2);
18 
19 #ifdef __cplusplus
20 }
21 #endif
22