Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
HIDKeyboard Class Reference

#include <keyboard.hpp>

Public Member Functions

 HIDKeyboard ()
 
void store_in_vfs (const uint8_t *data, size_t len)
 
void load (ioforge_usb_device *dev)
 
 HIDKeyboard ()
 
void store_in_vfs (const uint8_t *data, size_t len)
 
void load (ioforge_usb_device *dev)
 
 HIDKeyboard ()
 
void load (ioforge_usb_device *dev)
 

Static Public Member Functions

static void fireHandler (const uint8_t *data, size_t len)
 
static void fireHandler (const uint8_t *data, size_t len)
 
static void fireHandler (const uint8_t *data, size_t len)
 

Private Member Functions

void init_vfs ()
 
void parse_report (const uint8_t *data, size_t len)
 

Private Attributes

ioforge_usb_devicedev_ = 0
 
vnode_ptr_t inode_ = 0
 
dentry_ptr dentry_ = 0
 

Detailed Description

Definition at line 8 of file keyboard.hpp.

Constructor & Destructor Documentation

◆ HIDKeyboard() [1/3]

HIDKeyboard::HIDKeyboard ( )

Definition at line 14 of file keyboard.cpp.

References dev_.

◆ HIDKeyboard() [2/3]

HIDKeyboard::HIDKeyboard ( )

◆ HIDKeyboard() [3/3]

HIDKeyboard::HIDKeyboard ( )

Member Function Documentation

◆ fireHandler() [1/3]

void HIDKeyboard::fireHandler ( const uint8_t * data,
size_t len )
static

Definition at line 81 of file keyboard.cpp.

References data, instance, and len.

Referenced by load().

◆ fireHandler() [2/3]

static void HIDKeyboard::fireHandler ( const uint8_t * data,
size_t len )
static

References data, and len.

◆ fireHandler() [3/3]

static void HIDKeyboard::fireHandler ( const uint8_t * data,
size_t len )
static

References data, and len.

◆ init_vfs()

void HIDKeyboard::init_vfs ( )
private

Definition at line 12 of file keyboard.cpp.

◆ load() [1/3]

◆ load() [2/3]

void HIDKeyboard::load ( ioforge_usb_device * dev)

References dentry_, dev_, and inode_.

◆ load() [3/3]

void HIDKeyboard::load ( ioforge_usb_device * dev)

References data, dev_, and len.

◆ parse_report()

void HIDKeyboard::parse_report ( const uint8_t * data,
size_t len )
private

◆ store_in_vfs() [1/2]

void HIDKeyboard::store_in_vfs ( const uint8_t * data,
size_t len )

Definition at line 69 of file keyboard.cpp.

References data, inode_, and len.

◆ store_in_vfs() [2/2]

void HIDKeyboard::store_in_vfs ( const uint8_t * data,
size_t len )

References data, and len.

Field Documentation

◆ dentry_

dentry_ptr HIDKeyboard::dentry_ = 0
private

Definition at line 18 of file keyboard.hpp.

Referenced by load().

◆ dev_

ioforge_usb_device * HIDKeyboard::dev_ = 0
private

Definition at line 16 of file keyboard.hpp.

Referenced by HIDKeyboard(), and load().

◆ inode_

vnode_ptr_t HIDKeyboard::inode_ = 0
private

Definition at line 17 of file keyboard.hpp.

Referenced by load(), and store_in_vfs().


The documentation for this class was generated from the following files: