Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a buffer API definition in buffer/api.h to allow access to FX2 buffers using a standard manner #25

Open
wants to merge 1 commit into
base: linux-descriptors
Choose a base branch
from

Conversation

RacingTornado
Copy link

This defines a robust and flexible buffer API which allows the example code to access the buffer functionality in a standard manner irrespective of how the device is actually implementing this functionality.

In this particular request , I have changed the AUTOPOINTER register definition since there seems to be problems when trying to get

#define LOADWORD(reg, value) \ reg ## H = MSB(value); \ reg ## L = LSB(value);
Would like to know how you want to proceed.

@mithro
Copy link
Owner

mithro commented Jul 11, 2016

Saying "there seems to be a problem" is not useful. Describe the expected (what you think should happen) and actual behaviour (what you observe happening).

BYTE bufferX_flush();

/**
* \brief Returns the maximum size of the buffer. WARNING:(This is always less than 256 bytes).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need a warning. A byte can only store numbers up to 256, hence the buffer has to be smaller than that....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants