Kaleidoscope
FingerprintUSBHost.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <Arduino.h>
5 #include "PluggableUSB.h"
6 
7 namespace GuessedHost {
8 typedef enum {
13 } OSVariant;
14 };
15 
16 class FingerprintUSBHost_ : public PluggableUSBModule {
17  public:
18  FingerprintUSBHost_(void);
19  int begin(void);
20  GuessedHost::OSVariant guessHostOS(void);
21  void guessHostOS(String &os);
22  USBSetup usbSetups[32];
23  int usbSetupCount = 0;
24 
25  protected:
26  // Implementation of the PluggableUSBModule
27  int getInterface(uint8_t* interfaceCount);
28  int getDescriptor(USBSetup& setup);
29  bool setup(USBSetup& setup);
30 
31 
32  private:
33  uint8_t epType[0];
34  struct {
35  uint8_t maybe_linux:1;
36  uint8_t maybe_win:1;
37  uint8_t maybe_mac:1;
38  uint8_t not_linux:1;
39  uint8_t not_win:1;
40  uint8_t not_mac:1;
41  } guess;
42 
43 
44 };
45 
46 /*
47  typedef struct
48  {
49  uint8_t bmRequestType;
50  uint8_t bRequest;
51  uint8_t wValueL;
52  uint8_t wValueH;
53  uint16_t wIndex;
54  uint16_t wLength;
55  } USBSetup;
56 */
57 
Definition: FingerprintUSBHost.h:10
FingerprintUSBHost_ FingerprintUSBHost
Definition: FingerprintUSBHost.h:9
OSVariant
Definition: FingerprintUSBHost.h:8
Definition: FingerprintUSBHost.h:7
uint8_t maybe_mac
Definition: FingerprintUSBHost.h:37
Definition: FingerprintUSBHost.h:12
Definition: FingerprintUSBHost.h:11
uint8_t not_win
Definition: FingerprintUSBHost.h:39
uint8_t maybe_win
Definition: FingerprintUSBHost.h:36
Definition: FingerprintUSBHost.h:16
uint8_t not_linux
Definition: FingerprintUSBHost.h:38
void setup()
uint8_t not_mac
Definition: FingerprintUSBHost.h:40
uint8_t maybe_linux
Definition: FingerprintUSBHost.h:35