X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=metawatch%2Fbt_hci.h;h=7a0f99adb02916d923c5123e56b3657f89ce47e9;hp=deecc91c70ca2cc1d1ee5b3159dc92997befaed8;hb=16600ff42846105227c8a3cbb4f2b818ca41811d;hpb=1553c23cf33de5d8a193ffc8c7014cf826fc9fd3 diff --git a/metawatch/bt_hci.h b/metawatch/bt_hci.h index deecc91..7a0f99a 100644 --- a/metawatch/bt_hci.h +++ b/metawatch/bt_hci.h @@ -2,10 +2,10 @@ #define _BT_HCI_H /* HCI Command OGF */ -#define HCI_LINK_CTRL_OGF 0x01 -#define HCI_LINK_POLICY_OGF 0x02 -#define HCI_HC_BB_OGF 0x03 -#define HCI_INFO_PARAM_OGF 0x04 +#define HCI_LINK_CTRL_OGF 0x01 +#define HCI_LINK_POLICY_OGF 0x02 +#define HCI_HC_BB_OGF 0x03 +#define HCI_INFO_PARAM_OGF 0x04 /* HCI Command OCF */ #define HCI_DISCONN_OCF 0x06 @@ -83,6 +83,8 @@ #define EHCILL_WAKE_UP_IND 0x32 #define EHCILL_WAKE_UP_ACK 0x33 +#define BT_PIN "4312" + void bt_hci_init(void); void bt_hci_cmd(const uint8_t OGF, const uint8_t OCF, const uint8_t data_len, const void *data); void bt_acl_send(const uint16_t handle, const uint8_t PB, const uint8_t BC, const uint16_t channel, const uint16_t len, const void *dat);