stm32/wpan: add ble acl_write
This commit is contained in:
parent
c7b0df569b
commit
6d7d617f40
1 changed files with 12 additions and 1 deletions
|
@ -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 a new issue