feat: support Switch 2 controllers and expanded profiles
This commit is contained in:
parent
4e48b7a9e7
commit
a87917bf0b
51 changed files with 4371 additions and 365 deletions
21
bluepad32_config/parser/uni_switch2_pairing.h
Normal file
21
bluepad32_config/parser/uni_switch2_pairing.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Application-level trust, not SMP bonds or cryptographic authentication.
|
||||
// Call on the Bluetooth/storage core after the BTstack TLV backend is ready.
|
||||
#define UNI_SWITCH2_PAIRING_CAPACITY 16
|
||||
bool uni_switch2_pairing_known(uint8_t address_type, const uint8_t address[6]);
|
||||
bool uni_switch2_pairing_remember(uint8_t address_type, const uint8_t address[6]);
|
||||
bool uni_switch2_pairing_clear(void);
|
||||
bool uni_switch2_pairing_get(uint8_t index, uint8_t* address_type, uint8_t address[6]);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue