0.3.1
Sprite Types

Data Structures

struct  vdp2_sprite_type_0
 Sprite Type 0. More...
 
struct  vdp2_sprite_type_1
 Sprite Type 1. More...
 
struct  vdp2_sprite_type_2
 Sprite Type 2. More...
 
struct  vdp2_sprite_type_3
 Sprite Type 3. More...
 
struct  vdp2_sprite_type_4
 Sprite Type 4. More...
 
struct  vdp2_sprite_type_5
 Sprite Type 5. More...
 
struct  vdp2_sprite_type_6
 Sprite Type 6. More...
 
struct  vdp2_sprite_type_7
 Sprite Type 7. More...
 
struct  vdp2_sprite_type_8
 Sprite Type 8. More...
 
struct  vdp2_sprite_type_9
 Sprite Type 9. More...
 
struct  vdp2_sprite_type_a
 Sprite Type A. More...
 
struct  vdp2_sprite_type_b
 Sprite Type B. More...
 
struct  vdp2_sprite_type_c
 Sprite Type C. More...
 
struct  vdp2_sprite_type_d
 Sprite Type D. More...
 
struct  vdp2_sprite_type_e
 Sprite Type E. More...
 
struct  vdp2_sprite_type_f
 Sprite Type F. More...
 

Macros

#define VDP2_SPRITE_TYPE_0_PR_MASK   ((1 << 2) - 1)
 Sprite Type 0 PR bits mask.
 
#define VDP2_SPRITE_TYPE_0_CC_MASK   ((1 << 3) - 1)
 Sprite Type 0 CC bits mask.
 
#define VDP2_SPRITE_TYPE_0_DC_MASK   ((1 << 11) - 1)
 Sprite Type 0 DC bits mask.
 
#define VDP2_SPRITE_TYPE_1_PR_MASK   ((1 << 3) - 1)
 Sprite Type 1 PR bits mask.
 
#define VDP2_SPRITE_TYPE_1_CC_MASK   ((1 << 2) - 1)
 Sprite Type 1 CC bits mask.
 
#define VDP2_SPRITE_TYPE_1_DC_MASK   ((1 << 11) - 1)
 Sprite Type 1 DC bits mask.
 
#define VDP2_SPRITE_TYPE_2_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 2 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_2_PR_MASK   ((1 << 1) - 1)
 Sprite Type 2 PR bits mask.
 
#define VDP2_SPRITE_TYPE_2_CC_MASK   ((1 << 3) - 1)
 Sprite Type 2 CC bits mask.
 
#define VDP2_SPRITE_TYPE_2_DC_MASK   ((1 << 11) - 1)
 Sprite Type 2 DC bits mask.
 
#define VDP2_SPRITE_TYPE_3_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 3 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_3_PR_MASK   ((1 << 2) - 1)
 Sprite Type 3 PR bits mask.
 
#define VDP2_SPRITE_TYPE_3_CC_MASK   ((1 << 2) - 1)
 Sprite Type 3 CC bits mask.
 
#define VDP2_SPRITE_TYPE_3_DC_MASK   ((1 << 11) - 1)
 Sprite Type 3 DC bits mask.
 
#define VDP2_SPRITE_TYPE_4_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 4 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_4_PR_MASK   ((1 << 2) - 1)
 Sprite Type 4 PR bits mask.
 
#define VDP2_SPRITE_TYPE_4_CC_MASK   ((1 << 3) - 1)
 Sprite Type 4 CC bits mask.
 
#define VDP2_SPRITE_TYPE_4_DC_MASK   ((1 << 10) - 1)
 Sprite Type 4 DC bits mask.
 
#define VDP2_SPRITE_TYPE_5_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 5 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_5_PR_MASK   ((1 << 3) - 1)
 Sprite Type 5 PR bits mask.
 
#define VDP2_SPRITE_TYPE_5_CC_MASK   ((1 << 1) - 1)
 Sprite Type 5 CC bits mask.
 
#define VDP2_SPRITE_TYPE_5_DC_MASK   ((1 << 11) - 1)
 Sprite Type 5 DC bits mask.
 
#define VDP2_SPRITE_TYPE_6_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 6 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_6_PR_MASK   ((1 << 3) - 1)
 Sprite Type 6 PR bits mask.
 
#define VDP2_SPRITE_TYPE_6_CC_MASK   ((1 << 2) - 1)
 Sprite Type 6 CC bits mask.
 
#define VDP2_SPRITE_TYPE_6_DC_MASK   ((1 << 10) - 1)
 Sprite Type 6 DC bits mask.
 
#define VDP2_SPRITE_TYPE_7_SDW_MASK   ((1 << 1) - 1)
 Sprite Type 7 SDW bits mask.
 
#define VDP2_SPRITE_TYPE_7_PR_MASK   ((1 << 3) - 1)
 Sprite Type 7 PR bits mask.
 
#define VDP2_SPRITE_TYPE_7_CC_MASK   ((1 << 3) - 1)
 Sprite Type 7 CC bits mask.
 
#define VDP2_SPRITE_TYPE_7_DC_MASK   ((1 << 9) - 1)
 Sprite Type 7 DC bits mask.
 
#define VDP2_SPRITE_TYPE_8_PR_MASK   ((1 << 1) - 1)
 Sprite Type 8 PR bits mask.
 
#define VDP2_SPRITE_TYPE_8_DC_MASK   ((1 << 7) - 1)
 Sprite Type 8 DC bits mask.
 
#define VDP2_SPRITE_TYPE_9_PR_MASK   ((1 << 1) - 1)
 Sprite Type 9 PR bits mask.
 
#define VDP2_SPRITE_TYPE_9_CC_MASK   ((1 << 1) - 1)
 Sprite Type 9 CC bits mask.
 
#define VDP2_SPRITE_TYPE_9_DC_MASK   ((1 << 6) - 1)
 Sprite Type 9 DC bits mask.
 
#define VDP2_SPRITE_TYPE_A_PR_MASK   ((1 << 2) - 1)
 Sprite Type A PR bits mask.
 
#define VDP2_SPRITE_TYPE_A_DC_MASK   ((1 << 6) - 1)
 Sprite Type A DC bits mask.
 
#define VDP2_SPRITE_TYPE_B_CC_MASK   ((1 << 2) - 1)
 Sprite Type B CC bits mask.
 
#define VDP2_SPRITE_TYPE_B_DC_MASK   ((1 << 6) - 1)
 Sprite Type B DC bits mask.
 
#define VDP2_SPRITE_TYPE_C_SP_MASK   ((1 << 1) - 1)
 Sprite Type C SP bits mask.
 
#define VDP2_SPRITE_TYPE_C_DC_MASK   ((1 << 7) - 1)
 Sprite Type C DC bits mask.
 
#define VDP2_SPRITE_TYPE_D_SP_MASK   ((1 << 1) - 1)
 Sprite Type D SP bits mask.
 
#define VDP2_SPRITE_TYPE_D_SC_MASK   ((1 << 1) - 1)
 Sprite Type D SC bits mask.
 
#define VDP2_SPRITE_TYPE_D_DC_MASK   ((1 << 6) - 1)
 Sprite Type D DC bits mask.
 
#define VDP2_SPRITE_TYPE_E_SP_MASK   ((1 << 2) - 1)
 Sprite Type E SP bits mask.
 
#define VDP2_SPRITE_TYPE_E_DC_MASK   ((1 << 6) - 1)
 Sprite Type E DC bits mask.
 
#define VDP2_SPRITE_TYPE_F_SC_MASK   ((1 << 2) - 1)
 Sprite Type F SC bits mask.
 
#define VDP2_SPRITE_TYPE_F_DC_MASK   ((1 << 6) - 1)
 Sprite Type F DC bits mask.
 

Typedefs

typedef uint32_t vdp2_sprite_register_t
 Not yet documented.
 
typedef uint32_t vdp2_sprite_type_t
 Not yet documented.
 
typedef struct vdp2_sprite_type_0 vdp2_sprite_type_0_t
 Sprite Type 0.
 
typedef struct vdp2_sprite_type_1 vdp2_sprite_type_1_t
 Sprite Type 1.
 
typedef struct vdp2_sprite_type_2 vdp2_sprite_type_2_t
 Sprite Type 2.
 
typedef struct vdp2_sprite_type_3 vdp2_sprite_type_3_t
 Sprite Type 3.
 
typedef struct vdp2_sprite_type_4 vdp2_sprite_type_4_t
 Sprite Type 4.
 
typedef struct vdp2_sprite_type_5 vdp2_sprite_type_5_t
 Sprite Type 5.
 
typedef struct vdp2_sprite_type_6 vdp2_sprite_type_6_t
 Sprite Type 6.
 
typedef struct vdp2_sprite_type_7 vdp2_sprite_type_7_t
 Sprite Type 7.
 
typedef struct vdp2_sprite_type_8 vdp2_sprite_type_8_t
 Sprite Type 8.
 
typedef struct vdp2_sprite_type_9 vdp2_sprite_type_9_t
 Sprite Type 9.
 
typedef struct vdp2_sprite_type_a vdp2_sprite_type_a_t
 Sprite Type A.
 
typedef struct vdp2_sprite_type_b vdp2_sprite_type_b_t
 Sprite Type B.
 
typedef struct vdp2_sprite_type_c vdp2_sprite_type_c_t
 Sprite Type C.
 
typedef struct vdp2_sprite_type_d vdp2_sprite_type_d_t
 Sprite Type D.
 
typedef struct vdp2_sprite_type_e vdp2_sprite_type_e_t
 Sprite Type E.
 
typedef struct vdp2_sprite_type_f vdp2_sprite_type_f_t
 Sprite Type F.
 

Functions

void vdp2_sprite_priority_set (vdp2_sprite_register_t sprite_register, uint8_t priority)
 Not yet documented.
 

Detailed Description

Description goes here.


Data Structure Documentation

◆ vdp2_sprite_type_0

struct vdp2_sprite_type_0

Sprite Type 0.

Data Fields
unsigned int pr:2 Priority bits 15~14.
unsigned int cc:3 Color calculation ratio bits 13~11.
unsigned int dc:11 Dot color data bits 10~0.

◆ vdp2_sprite_type_1

struct vdp2_sprite_type_1

Sprite Type 1.

Data Fields
unsigned int pr:3 Priority bits 15~13.
unsigned int cc:2 Color calculation ratio bits 12~11.
unsigned int dc:11 Dot color data bits 10~0.

◆ vdp2_sprite_type_2

struct vdp2_sprite_type_2

Sprite Type 2.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:1 Priority bit bit 14.
unsigned int cc:3 Color calculation ratio bits 13~11.
unsigned int dc:11 Dot color data bits 10~0.

◆ vdp2_sprite_type_3

struct vdp2_sprite_type_3

Sprite Type 3.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:2 Priority bits bits 14~13.
unsigned int cc:2 Color calculation ratio bits 12~11.
unsigned int dc:11 Dot color data bits 10~0.

◆ vdp2_sprite_type_4

struct vdp2_sprite_type_4

Sprite Type 4.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:2 Priority bits 14~13.
unsigned int cc:3 Color calculation ratio bits 12~10.
unsigned int dc:10 Dot color data bits 9~0.

◆ vdp2_sprite_type_5

struct vdp2_sprite_type_5

Sprite Type 5.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:3 Priority bits 14~12.
unsigned int cc:1 Color calculation ratio bit 11.
unsigned int dc:11 Dot color data bits 10~0.

◆ vdp2_sprite_type_6

struct vdp2_sprite_type_6

Sprite Type 6.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:3 Priority bits 14~12.
unsigned int cc:2 Color calculation ratio bits 11~10.
unsigned int dc:10 Dot color data bits 9~0.

◆ vdp2_sprite_type_7

struct vdp2_sprite_type_7

Sprite Type 7.

Data Fields
unsigned int sdw:1 Shadow (or sprite window) bit 15.
unsigned int pr:3 Priority bits 14~12.
unsigned int cc:3 Color calculation ratio bits 11~9.
unsigned int dc:9 Dot color data bits 8~0.

◆ vdp2_sprite_type_8

struct vdp2_sprite_type_8

Sprite Type 8.

Data Fields
unsigned int pr:1 Priority bit 7.
unsigned int dc:7 Dot color data bits 6~0.

◆ vdp2_sprite_type_9

struct vdp2_sprite_type_9

Sprite Type 9.

Data Fields
unsigned int pr:1 Priority bit 7.
unsigned int cc:1 Color calculation ratio bit 6.
unsigned int dc:6 Dot color data bits 5~0.

◆ vdp2_sprite_type_a

struct vdp2_sprite_type_a

Sprite Type A.

Data Fields
unsigned int pr:2 Priority bits 7~6.
unsigned int dc:6 Dot color data bits 5~0.

◆ vdp2_sprite_type_b

struct vdp2_sprite_type_b

Sprite Type B.

Data Fields
unsigned int cc:2 Color calculation ratio bits 7~6.
unsigned int dc:6 Dot color data bits 5~0.

◆ vdp2_sprite_type_c

struct vdp2_sprite_type_c

Sprite Type C.

Data Fields
unsigned int sp:1 Priority and CRAM address shared bit 7.
unsigned int dc:7 Dot color data bits 6~0.

◆ vdp2_sprite_type_d

struct vdp2_sprite_type_d

Sprite Type D.

Data Fields
unsigned int sp:1 Priority and CRAM address shared bit 7.
unsigned int sc:1 Color calculation ratio and CRAM address shared bit 6.
unsigned int dc:6 Dot color data bits 5~0.

◆ vdp2_sprite_type_e

struct vdp2_sprite_type_e

Sprite Type E.

Data Fields
unsigned int sp:2 Priority and CRAM address shared bits 7~6.
unsigned int dc:6 Dot color data bits 5~0.

◆ vdp2_sprite_type_f

struct vdp2_sprite_type_f

Sprite Type F.

Data Fields
unsigned int sc:2 Color calculation ratio and CRAM address shared bits 7~6.
unsigned int dc:6 Dot color data bits 5~0.

Function Documentation

◆ vdp2_sprite_priority_set()

void vdp2_sprite_priority_set ( vdp2_sprite_register_t  sprite_register,
uint8_t  priority 
)

Not yet documented.

Parameters
sprite_register
priority