diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-06-15 11:28:15 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-06-15 11:28:15 +0000 |
| commit | de520787b589d8e5bbfac49b71c7a71cc3bb5c64 (patch) | |
| tree | 65dce334679d553f5aa466d489cddbd56511a6ad /Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h | |
| parent | 1511248394624e564a2742f370849fa6b08ae804 (diff) | |
Rename RFCOMM_GetFrameDataLength() to RFCOMM_GetVariableFieldValue() as it is multi-purpose, and modify it to move the buffer pointer itself rather than relying on the caller.
Make RFCOMM_GetChannelData() return NULL if the required channel DLCI is found, but the channel is closed.
Add modem signals (BREAK, DCD, etc.) to the channel state array, and add in a handler for the Modem Status RFCOMM control command.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1340 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h')
| -rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h index 5ccfc2d2..78e9b54e 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h @@ -86,7 +86,10 @@ uint8_t State; uint8_t Priority; bool UseUIFrames; - uint16_t RemoteMTU; + uint16_t MTU; + uint8_t StatusFlags; + uint8_t Signals; + uint8_t BreakSignals; } RFCOMM_Channel_t; /* External Variables: */ @@ -97,7 +100,7 @@ void RFCOMM_ProcessPacket(void* Data, Bluetooth_Channel_t* const Channel); RFCOMM_Channel_t* RFCOMM_GetChannelData(const uint8_t DLCI); - uint16_t RFCOMM_GetFrameDataLength(const uint8_t* const BufferPos); + uint16_t RFCOMM_GetVariableFieldValue(const uint8_t** BufferPos); void RFCOMM_SendFrame(const uint8_t DLCI, const bool CommandResponse, const uint8_t Control, const uint16_t DataLen, const void* Data, Bluetooth_Channel_t* const Channel); |
