VSF Documented
|
#include "./vsf_spi.h"
Macros | |
#define | __VSF_SPI_FUNC_BODY(__N, __VALUE) |
#define | __VSF_SPI_INTERFACE_DEF(__N, __VALUE) |
#define | __VSF_SPI_INTERFACE() const i_spi_t VSF_SPI[SPI_COUNT] |
Functions | |
vsf_spi_status_t | vsf_spi_get_status (vsf_spi_t *spi_obj) |
vsf_spi_capability_t | vsf_spi_get_capability (void) |
vsf_err_t | vsf_spi_init (vsf_spi_t *spi_obj, vsf_spi_cfg_t *cfg_ptr) |
initialize a spi instance. | |
uintalu_t | vsf_spi_polarity_set (vsf_spi_t *spi_obj, uintalu_t polarity) |
uintalu_t | vsf_spi_polarity_get (vsf_spi_t *spi_obj) |
fsm_rt_t | vsf_spi_exchange (vsf_spi_t *spi_obj, uintalu_t output, void *input) |
fsm_rt_t | vsf_spi_request_exchange (vsf_spi_t *spi_obj, void *output, void *input, uint_fast32_t size) |
Variables | |
vsf_spi_t | vsf_spi [SPI_COUNT] |
#define __VSF_SPI_FUNC_BODY | ( | __N, | |
__VALUE | |||
) |
#define __VSF_SPI_INTERFACE_DEF | ( | __N, | |
__VALUE | |||
) |
__VSF_SPI_INTERFACE | ( | ) | const i_spi_t VSF_SPI[SPI_COUNT] |
vsf_spi_status_t vsf_spi_get_status | ( | vsf_spi_t * | spi_obj | ) |
vsf_spi_capability_t vsf_spi_get_capability | ( | void | ) |
vsf_err_t vsf_spi_init | ( | vsf_spi_t * | spi_ptr, |
vsf_spi_cfg_t * | cfg_ptr | ||
) |
initialize a spi instance.
[in] | spi_ptr | a pointer to structure vsf_spi_t |
[in] | cfg_ptr | a pointer to structure vsf_spi_cfg_t |
fsm_rt_t vsf_spi_request_exchange | ( | vsf_spi_t * | spi_obj, |
void * | output, | ||
void * | input, | ||
uint_fast32_t | size | ||
) |