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

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

#include "wiimote_hid.h"
#include "powerblocks/core/bluetooth/blerror.h"
#include "wiimote.h"
#include "wiimote_sys.h"
#include "wiimote_extension.h"
#include "wiimote_log.h"
#include "FreeRTOS.h"
#include "timers.h"
#include <string.h>
#include <stdlib.h>

Macros

#define WIIMOTE_HID_INPUT_REPORT   0xA1
 
#define WIIMOTE_HID_OUTPUT_REPORT   0xA2
 
#define WIIMOTE_MEMORY_REGISTER_IR   0x04B00030
 
#define WIIMOTE_MEMORY_REGISTER_IR_BLOCK1   0x04B00000
 
#define WIIMOTE_MEMORY_REGISTER_IR_BLOCK2   0x04B0001A
 
#define WIIMOTE_MEMORY_REGISTER_IR_MODE   0x04B00033
 
#define WIIMOTE_MEMORY_EXTENSION_TYPE   0x04A400FA
 
#define WIIMOTE_MEMORY_ENCRYPTION_DISABLE_A   0x04A400F0
 
#define WIIMOTE_MEMORY_ENCRYPTION_DISABLE_B   0x04A400FB
 
#define WIIMOTE_MEMORY_EXTENSION_PERCISION   0x04A400FE
 
#define WIIMOTE_MEMORY_EEPROM_CALIBRATION   0x00000016
 

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