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);
int dreameye_get_image(maple_device_t *dev, uint8 image, uint8 **data, int *img_sz)
Transfer an image from the Dreameye.
int dreameye_erase_image(maple_device_t *dev, uint8 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.
unsigned char uint8
8-bit unsigned integer
Definition types.h:35
Maple Bus driver interface.
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 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
uint8 * img_buf
Storage for image data.
Definition dreameye.h:61
int transfer_count
The number of transfer operations required for the selected image.
Definition dreameye.h:55
One maple device.
Definition maple.h:270