mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-25 16:23:41 -05:00
Improving sendRom documentation
This commit is contained in:
parent
5bed387c5d
commit
af05d42935
|
|
@ -151,7 +151,7 @@ You can change these compile-time constants:
|
|||
|
||||
| Name | Return type | Description |
|
||||
| --------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `sendRom(rom, romSize, cancel, [mode])` | **LinkCableMultiboot::Result** | Sends the `rom`. During the handshake process, the library will continuously invoke `cancel`, and abort the transfer if it returns `true`. The `romSize` must be a number between `448` and `262144`, and a multiple of `16`. The `mode` can be either `LinkCableMultiboot::TransferMode::MULTI_PLAY` for GBA cable (default value) or `LinkCableMultiboot::TransferMode::SPI` for GBC cable. Once completed, the return value should be `LinkCableMultiboot::Result::SUCCESS`. |
|
||||
| `sendRom(rom, romSize, cancel, [mode])` | **LinkCableMultiboot::Result** | Sends the `rom` (must be 4-byte aligned). During the handshake process, the library will continuously invoke `cancel`, and abort the transfer if it returns `true`. The `romSize` must be a number between `448` and `262144`, and a multiple of `16`. The `mode` can be either `LinkCableMultiboot::TransferMode::MULTI_PLAY` for GBA cable (default value) or `LinkCableMultiboot::TransferMode::SPI` for GBC cable. Once completed, the return value should be `LinkCableMultiboot::Result::SUCCESS`. |
|
||||
|
||||
⚠️ stop DMA before sending the ROM! _(you might need to stop your audio player)_
|
||||
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ class LinkCableMultiboot {
|
|||
/**
|
||||
* @brief Sends the `rom`. Once completed, the return value should be
|
||||
* `LinkCableMultiboot::Result::SUCCESS`.
|
||||
* @param rom A pointer to ROM data.
|
||||
* @param rom A pointer to ROM data. Must be 4-byte aligned.
|
||||
* @param romSize Size of the ROM in bytes. It must be a number between `448`
|
||||
* and `262144`, and a multiple of `16`.
|
||||
* @param cancel A function that will be continuously invoked. If it returns
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user