Rename Bluetooth stack function parameters to clearly indicate what sort of Bluetooth channel (ACL, RFCOMM) is required for each parameter, to make the code easier to read.
Add a new RFCOMM_ChannelSignalsReceived() Bluetooth stack callback from the RFCOMM layer for when the remote device sends new terminal control signals. Fix RFCOMM_SendData() not aborting correctly when the requested RFCOMM channel is not found.
This commit is contained in:
parent
ba711d6759
commit
6276d5f82a
12 changed files with 153 additions and 145 deletions
|
@ -155,13 +155,13 @@
|
|||
void Bluetooth_ConnectionComplete(void);
|
||||
void Bluetooth_DisconnectionComplete(void);
|
||||
bool Bluetooth_ChannelConnectionRequest(const uint16_t PSM);
|
||||
void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel);
|
||||
void Bluetooth_ChannelOpened(Bluetooth_Channel_t* const Channel);
|
||||
void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const ACLChannel);
|
||||
void Bluetooth_ChannelOpened(Bluetooth_Channel_t* const ACLChannel);
|
||||
|
||||
Bluetooth_Channel_t* Bluetooth_GetChannelData(const uint16_t SearchValue, const uint8_t SearchKey);
|
||||
Bluetooth_Channel_t* Bluetooth_OpenChannel(const uint16_t PSM);
|
||||
void Bluetooth_CloseChannel(Bluetooth_Channel_t* const Channel);
|
||||
uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel);
|
||||
void Bluetooth_CloseChannel(Bluetooth_Channel_t* const ACLChannel);
|
||||
uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const ACLChannel);
|
||||
|
||||
/* External Variables: */
|
||||
extern Bluetooth_Device_t Bluetooth_DeviceConfiguration;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue