Initialize PAC module
FALSE if not PAC compatible SRAM found
Get number of detected PAC devices. PAC_Initialize must be called first.
Number of detected PAC devices
| inline u8 PAC_GetSlot( |
| ) |
Get a given PAC device's slot ID
| dev u8 | PAC device index |
Slot ID
Get the default (first) PAC device's slot ID
Default device's slot ID
| inline void PAC_Select( |
| ) |
Select a given PAC device
| dev u8 | PAC device index |
| void PAC_Activate( |
| ) |
Activate or disactive the current PAC device
| bEnable bool | FALSE to disable |
| void PAC_Write( |
| ) |
Write data to the current PAC device in the given page
| page u8 | PAC's page to write on (0-7) |
| data const u8* | Pointer to data to write |
| size u16 | Size of data to write |
| void PAC_Read( |
| ) |
Read data from the current PAC device in the given page
| page u8 | PAC's page to read from (0-7) |
| data u8* | Pointer to store read data |
| size u16 | Size of data to read |
| void PAC_Format( |
| ) |
Format the given page in the current PAC device
| page u8 | PAC's page to format (0-7) |
Format all pages in the current PAC device
| u8 PAC_Check( |
| ) |
Check the stat of the given page in the current PAC device
| page u8 | PAC's page to check (0-7) |