Building blocks for copying and transferring data between different types of memory devices.
More...
|
file | bmem_rd.h |
| Stream like access functions for Banked Memory.
|
|
|
bool | bmem_is_opened (void) |
| MSX Tests whether Banked Memory accessor is opened or not.
|
|
void | bmem_open (bmemptr_t loc) |
| MSX Open Banked Memory accessor.
|
|
void | bmem_close (void) |
| MSX Close Banked Memory accessor.
|
|
size_t | bmem_avail (void) |
| Return the size of remaining bytes in the current segment.
|
|
void | bmem_ensure (void) |
| Ensure the internal pointer points the current position.
|
|
const uint8_t * | bmem_ptr (void) |
| Get the internal pointer value of Banked Memory accessor.
|
|
void | bmem_skip (size_t len) |
| Advance the current position of Banked Memory accessor.
|
|
void | bmem_next_segment (void) |
| Switch to next segment.
|
|
void | bmem_read_chunk (uint8_t *dst, size_t len) |
| Read a chunk from Banked Memory.
|
|
uint8_t | bmem_read_byte (void) |
| Read an octet from Banked Memory.
|
|
Building blocks for copying and transferring data between different types of memory devices.
#include <bmem_rd.h>
◆ bmem_is_opened()
bool bmem_is_opened |
( |
void |
| ) |
|
MSX
Tests whether Banked Memory accessor is opened or not.
- Returns
- whether Banked Memory accessor is opened or not.
◆ bmem_open()
MSX
Open Banked Memory accessor.
- Parameters
-
- Precondition
!bmem_is_opened()
◆ bmem_close()
◆ bmem_avail()
size_t bmem_avail |
( |
void |
| ) |
|
Return the size of remaining bytes in the current segment.
- Returns
- the size of remaining bytes in the current segment.
- Precondition
- bmem_is_opened()
◆ bmem_ensure()
void bmem_ensure |
( |
void |
| ) |
|
Ensure the internal pointer points the current position.
- Precondition
- bmem_is_opened()
◆ bmem_ptr()
const uint8_t * bmem_ptr |
( |
void |
| ) |
|
Get the internal pointer value of Banked Memory accessor.
- Returns
- the internal pointer value.
- Precondition
- bmem_is_opened()
◆ bmem_skip()
void bmem_skip |
( |
size_t |
len | ) |
|
Advance the current position of Banked Memory accessor.
- Parameters
-
- Precondition
- bmem_is_opened()
◆ bmem_next_segment()
void bmem_next_segment |
( |
void |
| ) |
|
◆ bmem_read_chunk()
void bmem_read_chunk |
( |
uint8_t * |
dst, |
|
|
size_t |
len |
|
) |
| |
Read a chunk from Banked Memory.
- Parameters
-
dst | destination base address. |
len | number of bytes to be copied. |
- Precondition
bmem_is_opened()
◆ bmem_read_byte()
uint8_t bmem_read_byte |
( |
void |
| ) |
|
Read an octet from Banked Memory.
- Returns
- a value read from Banked Memory.
- Precondition
bmem_is_opened()