Skip to content

How do I get present current readings via the AMDS? #269

Answered by npetersen2
Bharat-Ramadas asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question, @Bharat-Ramadas.

Step 1

The first step is to disable the AMDC from automatically asking the AMDS for new data, so that you can do it manually yourself. To do this, update your user config file:

...

// Enable SensorCard platform motherboard auto request new ADC sample data
// set to 1 for enabled, 0 for disabled
#define USER_CONFIG_ENABLE_MOTHERBOARD_AUTO_TX (0)

...

Step 2

Now, the AMDS will never send over new data until your code asks for it. You can ask for it by calling the driver function: motherboard_request_new_data(base_addr) located in the AMDS driver.

When you call this function, the AMDS will start sending over its latest data, i.e. the data sampled at…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Bharat-Ramadas
Comment options

@npetersen2
Comment options

@Bharat-Ramadas
Comment options

Answer selected by Bharat-Ramadas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants