Loading...
Searching...
No Matches
cpu_ebi.h File Reference

External Bus Interface API. More...

Detailed Description

External Bus Interface API.

Author
Gerson Fernando Budke nando.nosp@m.jve@.nosp@m.gmail.nosp@m..com

Definition in file cpu_ebi.h.

#include "periph_cpu.h"
+ Include dependency graph for 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.
 

Macro Definition Documentation

◆ CPU_EBI_H

#define CPU_EBI_H

Definition at line 22 of file cpu_ebi.h.

◆ HUGEMEM_NULL

#define HUGEMEM_NULL   0

Definition at line 30 of file cpu_ebi.h.

Typedef Documentation

◆ hugemem_ptr_t

typedef uint32_t hugemem_ptr_t

Definition at line 28 of file cpu_ebi.h.

Function Documentation

◆ hugemem_read16()

uint16_t hugemem_read16 ( const hugemem_ptr_t  from)

Load register pair from external memory pointer.

Parameters
from24-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
from24-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
from24-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
tointernal memory pointer
from24-bit external memory pointer
sizenumber 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
to24-bit external memory address
val16-bit value

◆ hugemem_write32()

void hugemem_write32 ( hugemem_ptr_t  to,
uint32_t  val 
)

Store two register pair to external memory pointer.

Parameters
to24-bit external memory address
val32-bit value

◆ hugemem_write8()

static void hugemem_write8 ( hugemem_ptr_t  to,
uint8_t  val 
)
inlinestatic

Store byte register to external memory pointer.

Parameters
to24-bit external memory address
val8-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
to24-bit external memory pointer
frominternal memory pointer
sizenumber of bytes to write
Note
The address range to copy to is within 64 kB boundary