GBDK 2020 Docs
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
#define SGB_PAL_01 0x00U
10
#define SGB_PAL_23 0x01U
11
#define SGB_PAL_03 0x02U
12
#define SGB_PAL_12 0x03U
13
#define SGB_ATTR_BLK 0x04U
14
#define SGB_ATTR_LIN 0x05U
15
#define SGB_ATTR_DIV 0x06U
16
#define SGB_ATTR_CHR 0x07U
17
#define SGB_SOUND 0x08U
18
#define SGB_SOU_TRN 0x09U
19
#define SGB_PAL_SET 0x0AU
20
#define SGB_PAL_TRN 0x0BU
21
#define SGB_ATRC_EN 0x0CU
22
#define SGB_TEST_EN 0x0DU
23
#define SGB_ICON_EN 0x0EU
24
#define SGB_DATA_SND 0x0FU
25
#define SGB_DATA_TRN 0x10U
26
#define SGB_MLT_REQ 0x11U
27
#define SGB_JUMP 0x12U
28
#define SGB_CHR_TRN 0x13U
29
#define SGB_PCT_TRN 0x14U
30
#define SGB_ATTR_TRN 0x15U
31
#define SGB_ATTR_SET 0x16U
32
#define SGB_MASK_EN 0x17U
33
#define SGB_OBJ_TRN 0x18U
37
UINT8 sgb_check(void);
38
51
void
sgb_transfer
(
unsigned
char
* packet);
52
60
void
sgb_transfer_nowait
(
unsigned
char
* packet);
61
62
#endif
/* _SGB_H */
sgb_transfer_nowait
void sgb_transfer_nowait(unsigned char *packet)
sgb_transfer
void sgb_transfer(unsigned char *packet)