2008-03-13 00:44:25 +03:00
|
|
|
/*
|
2008-07-16 23:30:45 +04:00
|
|
|
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
|
|
|
* Copyright 2008 Mika Lindqvist
|
2008-03-13 00:44:25 +03:00
|
|
|
*
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMMAND_MANAGER_H
|
|
|
|
#define _COMMAND_MANAGER_H
|
|
|
|
|
|
|
|
#include <bluetooth/bluetooth.h>
|
|
|
|
|
|
|
|
/* CONTROL BASEBAND */
|
|
|
|
void* buildReset(size_t* outsize);
|
|
|
|
void* buildReadLocalName(size_t* outsize);
|
2008-03-31 01:43:59 +04:00
|
|
|
void* buildWriteScan(uint8 scanmode, size_t* outsize);
|
|
|
|
void* buildAuthEnable(uint8 auth, size_t* outsize);
|
2008-03-13 00:44:25 +03:00
|
|
|
|
|
|
|
/* LINK CONTROL */
|
|
|
|
void* buildRemoteNameRequest(bdaddr_t bdaddr,uint8 pscan_rep_mode, uint16 clock_offset, size_t* outsize);
|
|
|
|
void* buildInquiry(uint32 lap, uint8 length, uint8 num_rsp, size_t* outsize);
|
2008-06-12 23:18:32 +04:00
|
|
|
void* buildInquiryCancel(size_t* outsize);
|
|
|
|
void* buildPinCodeRequestReply(bdaddr_t bdaddr, uint8 length, char pincode[16], size_t* outsize);
|
2008-06-18 23:17:35 +04:00
|
|
|
void* buildPinCodeRequestNegativeReply(bdaddr_t bdaddr, size_t* outsize);
|
2008-07-16 23:25:44 +04:00
|
|
|
void* buildAcceptConnectionRequest(bdaddr_t bdaddr, uint8 role, size_t* outsize);
|
|
|
|
void* buildRejectConnectionRequest(bdaddr_t bdaddr, size_t* outsize);
|
2008-03-13 00:44:25 +03:00
|
|
|
|
|
|
|
/* OGF_INFORMATIONAL_PARAM */
|
|
|
|
void* buildReadBufferSize(size_t* outsize);
|
|
|
|
void* buildReadBdAddr(size_t* outsize);
|
|
|
|
|
|
|
|
#endif
|