1 /* 2 * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * Copyright 2008 Mika Lindqvist 4 * 5 * All rights reserved. Distributed under the terms of the MIT License. 6 * 7 */ 8 9 #ifndef _COMMAND_MANAGER_H 10 #define _COMMAND_MANAGER_H 11 12 #include <bluetooth/bluetooth.h> 13 14 /* CONTROL BASEBAND */ 15 void* buildReset(size_t* outsize); 16 void* buildReadLocalName(size_t* outsize); 17 void* buildWriteScan(uint8 scanmode, size_t* outsize); 18 void* buildAuthEnable(uint8 auth, size_t* outsize); 19 20 /* LINK CONTROL */ 21 void* buildRemoteNameRequest(bdaddr_t bdaddr,uint8 pscan_rep_mode, uint16 clock_offset, size_t* outsize); 22 void* buildInquiry(uint32 lap, uint8 length, uint8 num_rsp, size_t* outsize); 23 void* buildInquiryCancel(size_t* outsize); 24 void* buildPinCodeRequestReply(bdaddr_t bdaddr, uint8 length, char pincode[16], size_t* outsize); 25 void* buildPinCodeRequestNegativeReply(bdaddr_t bdaddr, size_t* outsize); 26 void* buildAcceptConnectionRequest(bdaddr_t bdaddr, uint8 role, size_t* outsize); 27 void* buildRejectConnectionRequest(bdaddr_t bdaddr, size_t* outsize); 28 29 /* OGF_INFORMATIONAL_PARAM */ 30 void* buildReadBufferSize(size_t* outsize); 31 void* buildReadBdAddr(size_t* outsize); 32 33 #endif 34