cancel
Showing results for 
Search instead for 
Did you mean: 

How I Could balance interrupt from as7058 and LSM6DSOXTR

rdl
Associate III

Hi to all comunity I've written the function below to reiceve interrupt from as7058 and LSM6DSOXTR but I have many and long periods that I received interrupts from as7058 only.How can I balance the receiving between them

?

void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin) {

 

if (AS7058_INT_Pin == GPIO_Pin) {

/* Handle AS7058 INT pin interrupt*/

extern void _as7058_int_pin_interrupt_callback(void);

_as7058_int_pin_interrupt_callback();

return;

}

 

if (iNEMO_INT1_Pin == GPIO_Pin) {

/* Handle here LSM6DSOXTR INT1 pin interrupt*/

return;

}

}

 

2 REPLIES 2

Please see the Posting Tips for how to properly post source code;

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193

 


@rdl wrote:

 as7058


You mean this: https://ams-osram.com/products/interfaces/analog-frontend/ams-as7058-high-performance-vital-sign-analog-frontend ?

 


@rdl wrote:

How can I balance the receiving between them


Not sure what you mean by that?

Surely, the rate at which interrupts are generated is determined by the sensors - so you configure them according to your requirements?