* Add `bt` behavior that can be used to perform certain actions, such as next/prev identity, reset identity, etc. NOTE: Multiple identities is only supported for non-split shields, due to missing Zephyr identity functionality for dual central/peripheral devices. * Proper bond reset tied to action, that honors peripheral bonds, so folks can reset and pair to other hosts, without breaking bonds between splt halves.
17 lines
443 B
C
17 lines
443 B
C
/*
|
|
* Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#define BT_RST_CMD 0
|
|
#define BT_IDENT_NEXT_CMD 1
|
|
#define BT_IDENT_PREV_CMD 2
|
|
#define BT_IDENT_SEL_CMD 3
|
|
#define BT_IDENT_CLR_CMD 4
|
|
|
|
#define BT_RST BT_RST_CMD 0
|
|
#define BT_IDENT_NEXT BT_IDENT_NEXT_CMD 0
|
|
#define BT_IDENT_PREV BT_IDENT_PREV_CMD 0
|
|
#define BT_IDENT_SEL BT_IDENT_SEL_CMD
|
|
#define BT_IDENT_CLR BT_IDENT_CLR_CMD 0 |