|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "hal_spi.h"

函数 | |
| errcode_t | hal_spi_v151_init (spi_bus_t bus, const hal_spi_attr_t *attr, const hal_spi_extra_attr_t *extra_attr, hal_spi_callback_t callback) |
| HAL层SPI的初始化接口。 | |
| errcode_t | hal_spi_v151_deinit (spi_bus_t bus) |
| HAL层SPI的去初始化接口。 | |
| errcode_t | hal_spi_v151_write (spi_bus_t bus, hal_spi_xfer_data_t *data, uint32_t timeout) |
| HAL层SPI发送数据接口。 | |
| errcode_t | hal_spi_v151_read (spi_bus_t bus, hal_spi_xfer_data_t *data, uint32_t timeout) |
| HAL层SPI读取数据接口(当timeout为0时会在数据读满或者fifo中没有数据的时候结束)。 | |
| errcode_t | hal_spi_v151_ctrl (spi_bus_t bus, hal_spi_ctrl_id_t id, uintptr_t param) |
| HAL层SPI控制接口。 | |
| void | hal_spi_v151_irq_handler (spi_bus_t bus) |
| SPI中断处理函数 | |