- Remove size output parameter creating commands

- Add support for reading the size of internals buffers of the bt chips
- Add support for Resetting the Device
- Add broadcom vendor command fro writting the bdaddr
- clean up the debug output



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29669 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-03-23 23:07:07 +00:00
parent ce65700663
commit dd5df90570
7 changed files with 100 additions and 41 deletions
+6 -3
View File
@@ -20,7 +20,7 @@ template <typename Type = void, int paramSize = 0, int HeaderSize = HCI_COMMAND_
class BluetoothCommand {
public:
BluetoothCommand(uint8 ogf, uint8 ocf, size_t* outsize)
BluetoothCommand(uint8 ogf, uint8 ocf)
{
fHeader = (struct hci_command_header*) fBuffer;
@@ -31,8 +31,6 @@ public:
fHeader->opcode = B_HOST_TO_LENDIAN_INT16(PACK_OPCODE(ogf, ocf));
fHeader->clen = paramSize;
*outsize = HeaderSize + paramSize;
}
Type*
@@ -47,6 +45,11 @@ public:
return (void*)fBuffer;
}
size_t Size() const
{
return HeaderSize + paramSize;
}
private:
char fBuffer[paramSize + HeaderSize];
Type* fContent;