I was trying to have a thread with a function to send commands over I2C. using a queue of messages to send and the FDwfDigitalI2cWriteRead and FDwfDigitalI2cWrite functions. Are these commands thread-safe or should I lock them to make them a critical section in my code?
Question
KTP
I was trying to have a thread with a function to send commands over I2C. using a queue of messages to send and the FDwfDigitalI2cWriteRead and FDwfDigitalI2cWrite functions. Are these commands thread-safe or should I lock them to make them a critical section in my code?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now