![]() |
RTEMS 6.3
|
Macros | |
| #define | alt_write_byte(dest, src) |
| #define | alt_read_byte(src) |
| #define | alt_write_hword(dest, src) |
| #define | alt_read_hword(src) |
| #define | alt_write_word(dest, src) |
| #define | alt_read_word(src) |
| #define | alt_write_dword(dest, src) |
| #define | alt_read_dword(src) |
This section implements read and write functionality for various memory untis. The memory unit terms used for these functions are consistent with those used in the ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition manual. The terms used for units of memory are:
| Unit of Memory | Abbreviation | Size in Bits |
|---|---|---|
| Byte | byte | 8 |
| Half Word | hword | 16 |
| Word | word | 32 |
| Double Word | dword | 64 |
| #define alt_read_byte | ( | src | ) |
Read and return the 8 bit byte from the source address in device memory.
| src | Read source pointer address |
| #define alt_read_dword | ( | src | ) |
Read and return the 64 bit double word from the source address in device memory.
| src | Read source pointer address |
| #define alt_read_hword | ( | src | ) |
Read and return the 16 bit half word from the source address in device memory.
| src | Read source pointer address |
| #define alt_read_word | ( | src | ) |
Read and return the 32 bit word from the source address in device memory.
| src | Read source pointer address |
| #define alt_write_byte | ( | dest, | |
| src ) |
Write the 8 bit byte to the destination address in device memory.
| dest | - Write destination pointer address |
| src | - 8 bit data byte to write to memory |
| #define alt_write_dword | ( | dest, | |
| src ) |
Write the 64 bit double word to the destination address in device memory.
| dest | - Write destination pointer address |
| src | - 64 bit data double word to write to memory |
| #define alt_write_hword | ( | dest, | |
| src ) |
Write the 16 bit half word to the destination address in device memory.
| dest | - Write destination pointer address |
| src | - 16 bit data half word to write to memory |
| #define alt_write_word | ( | dest, | |
| src ) |
Write the 32 bit word to the destination address in device memory.
| dest | - Write destination pointer address |
| src | - 32 bit data word to write to memory |