bnep.h (2fca4dad957cd7b88f4657ed51e89c12615dda72) | bnep.h (fe3c1d9398e4313afad30ccb7708859e93c2c1f4) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 146 unchanged lines hidden (view full) --- 155 156 // internal connection 157 btstack_packet_handler_t packet_handler; 158} bnep_service_t; 159 160 161void bnep_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 162 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 146 unchanged lines hidden (view full) --- 155 156 // internal connection 157 btstack_packet_handler_t packet_handler; 158} bnep_service_t; 159 160 161void bnep_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 162 |
163 164/* BNEP Setup Connection Response codes */ 165#define BNEP_SETUP_CONNECTION_RESPONSE_SUCCESS 0x0000 166#define BNEP_SETUP_CONNECTION_RESPONSE_INVALID_DEST_UUID 0x0001 167#define BNEP_SETUP_CONNECTION_RESPONSE_INVALID_SOURCE_UUID 0x0002 168#define BNEP_SETUP_CONNECTION_RESPONSE_INVALID_SERVICE_UUID_SIZE 0x0003 169#define BNEP_SETUP_CONNECTION_RESPONSE_CONNECTION_NOT_ALLOWED 0x0004 170 |
|
163/* API_START */ 164 165/** 166 * @brief Set up BNEP. 167 */ 168void bnep_init(void); 169 170/** --- 65 unchanged lines hidden --- | 171/* API_START */ 172 173/** 174 * @brief Set up BNEP. 175 */ 176void bnep_init(void); 177 178/** --- 65 unchanged lines hidden --- |