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:
parent
2eff731ecf
commit
4b952d479a
4 changed files with 44 additions and 31 deletions
|
|
@ -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: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue