sgb.h
Go to the documentation of this file.
#ifndef _SGB_H
#define _SGB_H
#include <types.h>
#include <stdint.h>
#define SGB_PAL_01 0x00U
#define SGB_PAL_23 0x01U
#define SGB_PAL_03 0x02U
#define SGB_PAL_12 0x03U
#define SGB_ATTR_BLK 0x04U
#define SGB_ATTR_LIN 0x05U
#define SGB_ATTR_DIV 0x06U
#define SGB_ATTR_CHR 0x07U
#define SGB_SOUND 0x08U
#define SGB_SOU_TRN 0x09U
#define SGB_PAL_SET 0x0AU
#define SGB_PAL_TRN 0x0BU
#define SGB_ATRC_EN 0x0CU
#define SGB_TEST_EN 0x0DU
#define SGB_ICON_EN 0x0EU
#define SGB_DATA_SND 0x0FU
#define SGB_DATA_TRN 0x10U
#define SGB_MLT_REQ 0x11U
#define SGB_JUMP 0x12U
#define SGB_CHR_TRN 0x13U
#define SGB_PCT_TRN 0x14U
#define SGB_ATTR_TRN 0x15U
#define SGB_ATTR_SET 0x16U
#define SGB_MASK_EN 0x17U
#define SGB_OBJ_TRN 0x18U
uint8_t sgb_check(void) OLDCALL PRESERVES_REGS(b, c);
void sgb_transfer(uint8_t * packet) OLDCALL PRESERVES_REGS(b, c);
#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_check
uint8_t sgb_check(void) OLDCALL PRESERVES_REGS(b
sgb_transfer
void sgb_transfer(uint8_t *packet) OLDCALL PRESERVES_REGS(b
stdint.h
uint8_t
unsigned char uint8_t
Definition: stdint.h:51