Split RFCOMM channel signals into Remote and Local pairs. Use memcpy() to copy over data from the command parameters to the RFCOMM response parameters.

Ensure that only the valid parameter bytes are sent back in response to MSC commands.
This commit is contained in:
Dean Camera 2010-06-23 08:10:21 +00:00
parent 2eff731ecf
commit 4b952d479a
4 changed files with 44 additions and 31 deletions

View file

@ -86,9 +86,16 @@
uint8_t State;
uint8_t Priority;
uint16_t MTU;
uint8_t StatusFlags;
uint8_t Signals;
uint8_t BreakSignals;
struct
{
uint8_t Signals;
uint8_t BreakSignal;
} Remote;
struct
{
uint8_t Signals;
uint8_t BreakSignal;
} Local;
} RFCOMM_Channel_t;
/* External Variables: */