2023-08-30 16:21:18 +08:00
|
|
|
/*
|
2025-07-22 11:15:46 +08:00
|
|
|
* Copyright (c) 2023-2025, ArtInChip Technology Co., Ltd
|
2023-08-30 16:21:18 +08:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* Authors: Hao Xiong <hao.xiong@artinchip.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _AIC_DRV_SPIENC_H_
|
|
|
|
|
#define _AIC_DRV_SPIENC_H_
|
|
|
|
|
|
|
|
|
|
#include <hal_spienc.h>
|
|
|
|
|
|
|
|
|
|
int drv_spienc_init(void);
|
|
|
|
|
void drv_spienc_set_cfg(u32 spi_bus, u32 addr, u32 cpos, u32 clen);
|
2025-07-22 11:15:46 +08:00
|
|
|
void drv_spienc_xip_enable(void);
|
|
|
|
|
void drv_spienc_xip_disable(void);
|
2023-08-30 16:21:18 +08:00
|
|
|
void drv_spienc_start(void);
|
|
|
|
|
void drv_spienc_stop(void);
|
|
|
|
|
int drv_spienc_check_empty(void);
|
|
|
|
|
|
|
|
|
|
#endif
|