Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
26
sdk/include/dev/csc/hgcsc.h
Normal file
26
sdk/include/dev/csc/hgcsc.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef HG_CSC_H
|
||||
#define HG_CSC_H
|
||||
#include "tx_platform.h"
|
||||
#include "list.h"
|
||||
#include "dev.h"
|
||||
#include "hal/csc.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
CSC_DONE_IRQ,
|
||||
CSC_IRQ_NUM
|
||||
}CSC_IRQ_E;
|
||||
|
||||
|
||||
struct hgcsc {
|
||||
struct csc_device dev;
|
||||
uint32 hw;
|
||||
csc_irq_hdl irq_hdl;
|
||||
uint32 irq_data;
|
||||
uint32 irq_num;
|
||||
int32 addr_count;
|
||||
uint32 opened:1, use_dma:1, dsleep:1;
|
||||
uint32 *cfg_backup;
|
||||
};
|
||||
int32 hgcsc_attach(uint32 dev_id, struct hgcsc *csc);
|
||||
#endif
|
||||
Reference in New Issue
Block a user