Intel® FPGA SDK for OpenCL™ Standard Edition: Custom Platform Toolkit User Guide

ID 683398
Date 5/04/2018
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.3.16. aocl_mmd_hostchannel_get_buffer

The aocl_mmd_hostchannel_get_buffer function provides a host with a pointer to the buffer they can access to write or read from the channel interface, along with the space or data available in the buffer, in bytes.

Syntax

void *aocl_mmd_hostchannel_get_buffer( int handle,
                                       int channel,
                                       size_t *buffer_size,
                                       int *status );

Function Arguments

  1. handle—A positive int value representing the handle to the board obtained from the aocl_mmd_open() call.
  2. channel—A positive int value representing handle to the channel to close obtained from the aocl_mmd_hostchannel_create() call.
  3. buffer_size—A pointer to size_t that the function will write available buffer space or size to.
  4. status—A pointer to int that the function will write result of the call to.

Return Value

If the function executes successfully, int pointed to by the status pointer will be 0. Returned void* may still be NULL, in which case size_t pointed by the buffer_size will be 0.

If the function fails to execute, int pointed by the status pointer will be a negative value.