GBDK 2020 Docs 4.4.0 API Documentation for GBDK 2020

sgb.h
Go to the documentation of this file.
1
6 #ifndef _SGB_H
7 #define _SGB_H
8
9 #include <types.h>
10 #include <stdint.h>
11
12 #define SGB_PAL_01 0x00U
13 #define SGB_PAL_23 0x01U
14 #define SGB_PAL_03 0x02U
15 #define SGB_PAL_12 0x03U
16 #define SGB_ATTR_BLK 0x04U
17 #define SGB_ATTR_LIN 0x05U
18 #define SGB_ATTR_DIV 0x06U
19 #define SGB_ATTR_CHR 0x07U
20 #define SGB_SOUND 0x08U
21 #define SGB_SOU_TRN 0x09U
22 #define SGB_PAL_SET 0x0AU
23 #define SGB_PAL_TRN 0x0BU
24 #define SGB_ATRC_EN 0x0CU
25 #define SGB_TEST_EN 0x0DU
26 #define SGB_ICON_EN 0x0EU
27 #define SGB_DATA_SND 0x0FU
28 #define SGB_DATA_TRN 0x10U
29 #define SGB_MLT_REQ 0x11U
30 #define SGB_JUMP 0x12U
31 #define SGB_CHR_TRN 0x13U
32 #define SGB_PCT_TRN 0x14U
33 #define SGB_ATTR_TRN 0x15U
34 #define SGB_ATTR_SET 0x16U
35 #define SGB_MASK_EN 0x17U
36 #define SGB_OBJ_TRN 0x18U
45 uint8_t sgb_check(void) OLDCALL PRESERVES_REGS(b, c);
46
68 void sgb_transfer(uint8_t * packet) OLDCALL PRESERVES_REGS(b, c);
69
70 #endif /* _SGB_H */
OLDCALL
#define OLDCALL
Definition: types.h:21
PRESERVES_REGS
#define PRESERVES_REGS(...)
Definition: types.h:32
b
void b
Definition: gb.h:748
c
uint8_t c
Definition: sgb.h:45
sgb_transfer
void sgb_transfer(uint8_t *packet) OLDCALL PRESERVES_REGS(b
sgb_check
uint8_t sgb_check(void) OLDCALL PRESERVES_REGS(b
stdint.h
uint8_t
unsigned char uint8_t
Definition: stdint.h:51