PowerBlocks SDK
 
Loading...
Searching...
No Matches
wiimote_hid.h File Reference

Bluetooth Instance / Protocol Of The WiiMote. More...

#include "powerblocks/core/bluetooth/l2cap.h"
#include "powerblocks/core/bluetooth/hci.h"
#include "powerblocks/input/wiimote/wiimote.h"
#include "powerblocks/input/wiimote/wiimote_extension.h"
#include "FreeRTOS.h"
#include "semphr.h"

Go to the source code of this file.

Classes

struct  wiimote_raw_t
 
struct  wiimote_hid_t
 

Macros

#define WIIMOTE_REPORT_LEDS   0x11
 
#define WIIMOTE_REPORT_REPORT_MODE   0x12
 
#define WIIMOTE_REPORT_ENABLE_CAMERA_CLOCK   0x13
 
#define WIIMOTE_REPORT_STATUS   0x15
 
#define WIIMOTE_REPORT_WRITE_MEMORY   0x16
 
#define WIIMOTE_REPORT_READ_MEMORY   0x17
 
#define WIIMOTE_REPORT_ENABLE_CAMERA   0x1A
 
#define WIIMOTE_REPORT_STATUS_INFO   0x20
 
#define WIIMOTE_REPORT_READ_MEMORY_DATA   0x21
 
#define WIIMOTE_REPORT_ACKNOWLEDGE_OUTPUT   0x22
 
#define WIIMOTE_REPORT_BUTTONS   0x30
 
#define WIIMOTE_REPORT_BUTTONS_ACCL   0x31
 
#define WIIMOTE_REPORT_BUTTONS_EXT8   0x32
 
#define WIIMOTE_REPORT_BUTTONS_ACCL_IR12   0X33
 
#define WIIMOTE_REPORT_BUTTONS_EXT19   0X34
 
#define WIIMOTE_REPORT_BUTTONS_ACCL_EXT16   0x35
 
#define WIIMOTE_REPORT_BUTTONS_IR10_EXT9   0x36
 
#define WIIMOTE_REPORT_BUTTONS_ACCEL_IR10_EXT6   0x37
 
#define WIIMOTE_REPORT_EXT21   0x3D
 
#define WIIMOTE_REPORT_INTERLEAVED_A   0x3E
 
#define WIIMOTE_REPORT_INTERLEAVED_B   0x3F
 

Enumerations

enum  wiimote_flags_t {
  WIIMOTE_FLAGS_BATTERY_NEAR_EMPTY = 0X01 , WIIMOTE_FLAGS_EXTENSION_CONNECTED = 0X02 , WIIMOTE_FLAGS_SPEAKER_ENABLED = 0X04 , WIIMOTE_FLAGS_IR_CAMERA_ENABLED = 0X08 ,
  WIIMOTE_FLAGS_LED1 = 0X10 , WIIMOTE_FLAGS_LED2 = 0X20 , WIIMOTE_FLAGS_LED3 = 0X40 , WIIMOTE_FLAGS_LEF4 = 0X80
}
 

Functions

int wiimote_hid_initialize (wiimote_hid_t *wiimote, const hci_discovered_device_info_t *discovery, int slot)
 
void wiimote_hid_close (wiimote_hid_t *wiimote)
 
int wiimote_hid_set_report (wiimote_hid_t *wiimote, uint8_t report_type, bool update_ir_mode)
 
bool wiimote_hid_driver_filter (const hci_discovered_device_info_t *device, const char *device_name)
 
void * wiimote_hid_driver_initialize (const hci_discovered_device_info_t *device)
 
void wiimote_hid_driver_free_device (void *instance)
 

Detailed Description

Bluetooth Instance / Protocol Of The WiiMote.

Contains the code to actually communicate with wiimotes.

Author
Samuel Fitzsimons (rainbain)
Date
2025