actionpro-cli/xusb.h

17 lines
484 B
C
Raw Permalink Normal View History

2021-08-12 13:06:08 +02:00
#ifndef xusb_h
#define xusb_h
#include <libusb-1.0/libusb.h>
2024-06-14 22:17:23 +02:00
#include <stdint.h>
2021-08-12 13:06:08 +02:00
2024-06-14 22:17:23 +02:00
#define REQUEST_SENSE_LENGTH 0x12
#define CDB_MAX_LENGTH 0x10
2021-08-12 13:06:08 +02:00
extern const uint8_t cdb_length[256];
2024-06-14 22:17:23 +02:00
extern int send_mass_storage_command(libusb_device_handle *handle,
uint8_t endpoint, uint8_t lun,
uint8_t *cdb, uint8_t direction,
int data_length, uint32_t *ret_tag);
2021-08-12 13:06:08 +02:00
#endif /* xusb_h */