Jump to content
  • 0

More than one option in "options"?


NicR

Question

I'm using multiple MCC172 hats & want continuous sampling. How do I include both OPTS_EXTTRIGGER and OPTS_CONTINUOUS.

I checked mcc172.c and the mcc172_a_in_scan_start() function declares uint32_t options so can I only use one of the above options?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello,

The options are enumerations that can be logically OR'd together For example OPTS_EXTTRIGGER | OPTS_CONTINUOUS will instruct it to wait for an external trigger and then run continuously.

uint32_t options = OPTS_EXTTRIGGER | OPTS_CONTINUOUS;

 

Best regards,

John

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...