2024-08-12 09:08 AM
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;
}
}
2024-08-12 09:22 AM
Please see the Posting Tips for how to properly post source code;
@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?
2024-08-12 09:48 AM