113 lines
1.8 KiB
C
113 lines
1.8 KiB
C
#ifndef _AUEQ_H
|
|
#define _AUEQ_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/**
|
|
* @brief AUEQ ioctl_cmd type
|
|
*/
|
|
enum aueq_ioctl_cmd {
|
|
|
|
/*!
|
|
* @brief:
|
|
*
|
|
*/
|
|
AUEQ_IOCTL_CMD_NONE,
|
|
};
|
|
|
|
|
|
|
|
|
|
/* AUEQ api for user */
|
|
|
|
struct aueq_device {
|
|
struct dev_obj dev;
|
|
};
|
|
|
|
struct aueq_hal_ops {
|
|
struct devobj_ops ops;
|
|
int32(*open)(struct aueq_device *aueq, void* p_content, uint32 bytes);
|
|
int32(*close)(struct aueq_device *aueq);
|
|
int32(*run)(struct aueq_device *aueq, void* p_content, uint32 bytes);
|
|
int32(*ioctl)(struct aueq_device *aueq, enum aueq_ioctl_cmd ioctl_cmd, uint32 param1, uint32 param2);
|
|
};
|
|
|
|
|
|
|
|
/* AUEQ API functions */
|
|
|
|
|
|
|
|
/**
|
|
* @brief aueq_open
|
|
*
|
|
*
|
|
* @note .
|
|
*
|
|
* @param aueq The address of aueq device in the RTOS.
|
|
* @param .
|
|
* @param .
|
|
*
|
|
* @return
|
|
* - RET_OK Success
|
|
* - RET_ERR Fail
|
|
*/
|
|
int32 aueq_open(struct aueq_device *aueq, void* p_content, uint32 bytes);
|
|
|
|
/**
|
|
* @brief aueq_close
|
|
*
|
|
*
|
|
* @note .
|
|
*
|
|
* @param aueq The address of aueq device in the RTOS.
|
|
* @param .
|
|
* @param .
|
|
*
|
|
* @return
|
|
* - RET_OK Success
|
|
* - RET_ERR Fail
|
|
*/
|
|
int32 aueq_close(struct aueq_device *aueq);
|
|
|
|
/**
|
|
* @brief aueq_encode
|
|
*
|
|
*
|
|
* @note .
|
|
*
|
|
* @param aueq The address of aueq device in the RTOS.
|
|
* @param .
|
|
* @param .
|
|
*
|
|
* @return
|
|
* - RET_OK Success
|
|
* - RET_ERR Fail
|
|
*/
|
|
int32 aueq_run(struct aueq_device *aueq, void* p_content, uint32 bytes);
|
|
|
|
|
|
/**
|
|
* @brief aueq_ioctl
|
|
*
|
|
*
|
|
* @note .
|
|
*
|
|
* @param aueq The address of aueq device in the RTOS.
|
|
* @param .
|
|
* @param .
|
|
*
|
|
* @return
|
|
* - RET_OK Success
|
|
* - RET_ERR Fail
|
|
*/
|
|
int32 aueq_ioctl(struct aueq_device *aueq, enum aueq_ioctl_cmd ioctl_cmd, uint32 param1, uint32 param2);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|