You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
507 B

4 months ago
#ifndef PORTA_DETECT_H
#define PORTA_DETECT_H
#include <stdint.h>
#include <stdbool.h>
#define USBA_PLUGIN_DEB_TIME 100 /* in unit of ms */
#define USBA_PLUGOUT_DEB_TIME 60000 /* in unit of ms */
#define USBA_PLUGOUT_IOUT_LS_THERSH 10 /* in unit of mA */
void usba_plugin_detect_init(void);
void usba_plugin_detect_deinit(void);
bool usba_plugin_detect(void);
void usba_plugout_detect_init(void);
void usba_plugout_detect_deinit(void);
bool usba_plugout_detect(void);
#endif /* APP_PORTA_DETECT_H */