llvm-mos-sdk
Macros | Functions
vce.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for vce.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Functionality related to the VCE.

Macro Definition Documentation

◆ VCE_COLOR_INDEX

#define VCE_COLOR_INDEX (   index,
  color 
)    (((uint16_t)(index) << 4) + color)

Function Documentation

◆ pce_vce_copy_palette()

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.

Parameters
indexDestination palette index, from 0 to 31.
sourceSource memory address.
countPalette count, from 1 to 32.

◆ pce_vce_copy_palette_to_ram()

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.

Parameters
destDestination memory address.
indexSource palette index, from 0 to 31.
countPalette count, from 1 to 32.

◆ pce_vce_get_color()

uint16_t pce_vce_get_color ( uint16_t  index)

Get a color from the VCE.

Parameters
indexThe color index - VCE_COLOR_INDEX
Returns
uint16_t The color value.

◆ pce_vce_set_color()

void pce_vce_set_color ( uint16_t  index,
uint16_t  value 
)

Set a color to the VCE.

Parameters
indexThe color index - VCE_COLOR_INDEX
valueThe color value.