19 #ifndef __DC_MAPLE_DREAMEYE_H
20 #define __DC_MAPLE_DREAMEYE_H
22 #include <sys/cdefs.h>
67 #define DREAMEYE_GETCOND_NUM_IMAGES 0x81
74 #define DREAMEYE_GETCOND_TRANSFER_COUNT 0x83
81 #define DREAMEYE_SUBCOMMAND_IMAGEREQ 0x04
88 #define DREAMEYE_SUBCOMMAND_ERASE 0x05
95 #define DREAMEYE_SUBCOMMAND_ERROR 0xFF
98 #define DREAMEYE_IMAGEREQ_CONTINUE 0x00
101 #define DREAMEYE_IMAGEREQ_START 0x40
158 void dreameye_shutdown();
int img_transferring
Is an image transferring now?
Definition: dreameye.h:50
int img_size
The size of the image in bytes.
Definition: dreameye.h:56
int dreameye_erase_image(maple_device_t *dev, uint8 image, int block)
Erase an image from the Dreameye.
One maple device.
Definition: maple.h:237
Maple Bus driver interface.
int image_count_valid
Is the image_count field valid?
Definition: dreameye.h:43
uint8 img_number
The image number currently being transferred.
Definition: dreameye.h:59
uint8 * img_buf
Storage for image data.
Definition: dreameye.h:53
struct dreameye_state dreameye_state_t
Dreameye status structure.
Dreameye status structure.
Definition: dreameye.h:38
int image_count
The number of images on the device.
Definition: dreameye.h:40
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
int dreameye_get_image(maple_device_t *dev, uint8 image, uint8 **data, int *img_sz)
Transfer 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 transfer_count
The number of transfer operations required for the selected image.
Definition: dreameye.h:47