20#ifndef __DC_MAPLE_DREAMEYE_H
21#define __DC_MAPLE_DREAMEYE_H
46typedef struct dreameye_state {
75#define DREAMEYE_GETCOND_NUM_IMAGES 0x81
82#define DREAMEYE_GETCOND_TRANSFER_COUNT 0x83
89#define DREAMEYE_SUBCOMMAND_IMAGEREQ 0x04
96#define DREAMEYE_SUBCOMMAND_ERASE 0x05
103#define DREAMEYE_SUBCOMMAND_ERROR 0xFF
106#define DREAMEYE_IMAGEREQ_CONTINUE 0x00
109#define DREAMEYE_IMAGEREQ_START 0x40
165void dreameye_init(
void);
166void dreameye_shutdown(
void);
uint8_t * image
Definition 2ndmix.c:390
static struct @69 data[BARRIER_COUNT]
Various common macros used throughout the codebase.
int dreameye_erase_image(maple_device_t *dev, uint8_t image, int block)
Erase an image from the Dreameye.
int dreameye_get_image_count(maple_device_t *dev, int block)
Get the number of images on the Dreameye.
int dreameye_get_image(maple_device_t *dev, uint8_t image, uint8_t **data, int *img_sz)
Transfer an image from the Dreameye.
Maple Bus driver interface.
static uint8_t block[4096]
Definition mke2fs.c:45
Dreameye status structure.
Definition dreameye.h:46
int img_transferring
Is an image transferring now?
Definition dreameye.h:58
int image_count
The number of images on the device.
Definition dreameye.h:48
int img_size
The size of the image in bytes.
Definition dreameye.h:64
uint8_t * img_buf
Storage for image data.
Definition dreameye.h:61
uint8_t img_number
The image number currently being transferred.
Definition dreameye.h:67
int image_count_valid
Is the image_count field valid?
Definition dreameye.h:51
int transfer_count
The number of transfer operations required for the selected image.
Definition dreameye.h:55
One maple device.
Definition maple.h:272