|
llvm-mos-sdk
|
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | VCE_COLOR_INDEX(index, color) (((uint16_t)(index) << 4) + color) |
Functions | |
| uint16_t | pce_vce_get_color (uint16_t index) |
| Get a color from the VCE. More... | |
| void | pce_vce_set_color (uint16_t index, uint16_t value) |
| Set a color to the VCE. More... | |
| void | pce_vce_copy_palette (uint8_t index, const void *source, uint8_t count) |
| Copy palettes (N x 16 colors) from RAM to the VCE. More... | |
| void | pce_vce_copy_palette_to_ram (void *dest, uint8_t index, uint8_t count) |
| Copy palettes (N x 16 colors) from the VCE to RAM. More... | |
Functionality related to the VCE.
| void pce_vce_copy_palette | ( | uint8_t | index, |
| const void * | source, | ||
| uint8_t | count | ||
| ) |
Copy palettes (N x 16 colors) from RAM to the VCE.
| index | Destination palette index, from 0 to 31. |
| source | Source memory address. |
| count | Palette count, from 1 to 32. |
| void pce_vce_copy_palette_to_ram | ( | void * | dest, |
| uint8_t | index, | ||
| uint8_t | count | ||
| ) |
Copy palettes (N x 16 colors) from the VCE to RAM.
| dest | Destination memory address. |
| index | Source palette index, from 0 to 31. |
| count | Palette count, from 1 to 32. |
| uint16_t pce_vce_get_color | ( | uint16_t | index | ) |
Get a color from the VCE.
| index | The color index - VCE_COLOR_INDEX |
| void pce_vce_set_color | ( | uint16_t | index, |
| uint16_t | value | ||
| ) |
Set a color to the VCE.
| index | The color index - VCE_COLOR_INDEX |
| value | The color value. |