External Bus Interface API.
More...
External Bus Interface API.
- Author
- Gerson Fernando Budke nando.nosp@m.jve@.nosp@m.gmail.nosp@m..com
Definition in file cpu_ebi.h.
Go to the source code of this file.
#define | CPU_EBI_H |
|
#define | HUGEMEM_NULL 0 |
|
typedef uint32_t | hugemem_ptr_t |
|
void | ebi_init (void) |
|
static uint8_t | hugemem_read8 (const hugemem_ptr_t from) |
| Load byte register from external memory pointer.
|
|
static void | hugemem_write8 (hugemem_ptr_t to, uint8_t val) |
| Store byte register to external memory pointer.
|
|
uint16_t | hugemem_read16 (const hugemem_ptr_t from) |
| Load register pair from external memory pointer.
|
|
void | hugemem_write16 (hugemem_ptr_t to, uint16_t val) |
| Store register pair to external memory pointer.
|
|
uint32_t | hugemem_read32 (const hugemem_ptr_t from) |
| Load two register pair from external memory pointer.
|
|
void | hugemem_write32 (hugemem_ptr_t to, uint32_t val) |
| Store two register pair to external memory pointer.
|
|
void | hugemem_read_block (void *to, const hugemem_ptr_t from, size_t size) |
| Read byte stream from external memory to internal memory.
|
|
void | hugemem_write_block (hugemem_ptr_t to, const void *from, size_t size) |
| Write byte stream from internal memory to external memory.
|
|
◆ CPU_EBI_H
◆ HUGEMEM_NULL
◆ hugemem_ptr_t
typedef uint32_t hugemem_ptr_t |
◆ hugemem_read16()
uint16_t hugemem_read16 |
( |
const hugemem_ptr_t |
from | ) |
|
Load register pair from external memory pointer.
- Parameters
-
from | 24-bit external memory address |
- Returns
- uint16_t 8-bit value
◆ hugemem_read32()
uint32_t hugemem_read32 |
( |
const hugemem_ptr_t |
from | ) |
|
Load two register pair from external memory pointer.
- Parameters
-
from | 24-bit external memory address |
- Returns
- uint8_t 32-bit value
◆ hugemem_read8()
static uint8_t hugemem_read8 |
( |
const hugemem_ptr_t |
from | ) |
|
|
inlinestatic |
Load byte register from external memory pointer.
- Parameters
-
from | 24-bit external memory address |
- Returns
- uint8_t 8-bit value
Definition at line 40 of file cpu_ebi.h.
◆ hugemem_read_block()
void hugemem_read_block |
( |
void * |
to, |
|
|
const hugemem_ptr_t |
from, |
|
|
size_t |
size |
|
) |
| |
Read byte stream from external memory to internal memory.
- Parameters
-
to | internal memory pointer |
from | 24-bit external memory pointer |
size | number of bytes to read |
- Note
- The address range to copy from is within 64 kB boundary
◆ hugemem_write16()
void hugemem_write16 |
( |
hugemem_ptr_t |
to, |
|
|
uint16_t |
val |
|
) |
| |
Store register pair to external memory pointer.
- Parameters
-
to | 24-bit external memory address |
val | 16-bit value |
◆ hugemem_write32()
void hugemem_write32 |
( |
hugemem_ptr_t |
to, |
|
|
uint32_t |
val |
|
) |
| |
Store two register pair to external memory pointer.
- Parameters
-
to | 24-bit external memory address |
val | 32-bit value |
◆ hugemem_write8()
static void hugemem_write8 |
( |
hugemem_ptr_t |
to, |
|
|
uint8_t |
val |
|
) |
| |
|
inlinestatic |
Store byte register to external memory pointer.
- Parameters
-
to | 24-bit external memory address |
val | 8-bit value |
Definition at line 72 of file cpu_ebi.h.
◆ hugemem_write_block()
void hugemem_write_block |
( |
hugemem_ptr_t |
to, |
|
|
const void * |
from, |
|
|
size_t |
size |
|
) |
| |
Write byte stream from internal memory to external memory.
- Parameters
-
to | 24-bit external memory pointer |
from | internal memory pointer |
size | number of bytes to write |
- Note
- The address range to copy to is within 64 kB boundary