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.
39 lines
686 B
39 lines
686 B
|
7 months ago
|
#pragma once
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
typedef enum {
|
||
|
|
FEAT_OBJDET = 0,
|
||
|
|
FEAT_ABNORM = 1,
|
||
|
|
FEAT_CROWD = 2,
|
||
|
|
FEAT_FIRE = 3,
|
||
|
|
FEAT_LPR = 4,
|
||
|
|
FEAT_FACEATTR = 5,
|
||
|
|
FEAT_VIPTRACK = 6,
|
||
|
|
FEAT__COUNT
|
||
|
|
} ctrl_feat_e;
|
||
|
|
|
||
|
|
#ifndef BIT
|
||
|
|
#define BIT(x) (1u << (x))
|
||
|
|
#endif
|
||
|
|
|
||
|
|
extern uint32_t g_feat_mask;
|
||
|
|
|
||
|
|
uint32_t ctrl_active_models_acquire(void);
|
||
|
|
uint32_t ctrl_active_features_peek(void);
|
||
|
|
uint32_t ctrl_feat_mask_snapshot(void);
|
||
|
|
|
||
|
|
#define CTRL_MODEL_ON(MASK, MOD) ((MASK) & BIT(MOD))
|
||
|
|
|
||
|
|
int ctrl_uds_start(void);
|
||
|
|
|
||
|
|
void ctrl_feature_on(ctrl_feat_e f);
|
||
|
|
void ctrl_feature_off(ctrl_feat_e f);
|
||
|
|
void ctrl_feature_all_off(void);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|