mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
stm32/wpan: add ble acl_write
This commit is contained in:
parent
c7b0df569b
commit
6d7d617f40
@ -42,5 +42,16 @@ impl Ble {
|
||||
.await;
|
||||
}
|
||||
|
||||
// TODO: acl commands
|
||||
/// `TL_BLE_SendAclData`
|
||||
pub async fn acl_write(handle: u16, payload: &[u8]) {
|
||||
Ipcc::send(channels::cpu1::IPCC_HCI_ACL_DATA_CHANNEL, || unsafe {
|
||||
CmdPacket::write_into(
|
||||
HCI_ACL_DATA_BUFFER.as_mut_ptr() as *mut _,
|
||||
TlPacketType::AclData,
|
||||
handle,
|
||||
payload,
|
||||
);
|
||||
})
|
||||
.await;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user