/* Transport Layer Write. 
Writes nBufSize bytes from pBuf to the device */
ADI_BLE_TRANSPORT_RESULT adi_tal_Write(void *pBuf, const uint32_t nBufSize)
/* Transport Layer Write. 
Writes nBufSize bytes from pBuf to the device */
ADI_BLE_TRANSPORT_RESULT adi_tal_Write(void *pBuf, const uint32_t nBufSize)
{
    ADI_BLE_TRANSPORT_RESULT eTransportResult;
    uint8_t                  nBytes;
    ASSERT(pBuf != NULL);
    ASSERT(nBufSize > 0u);
    ASSERT(nBufSize <= ADI_RADIO_BUFFER_BYTES);
    eTransportResult = RadioTransaction(true, pBuf, nBufSize, &nBytes);
    RETURN_ERROR(nBytes, nBufSize, ADI_BLE_TRANSPORT_FAILED_TRANSACTION);
    return (eTransportResult);
}