spiextend 2.0.0.0
|
This file contains API for SPI Extend Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | spiextend_t |
SPI Extend Click context object. More... | |
struct | spiextend_cfg_t |
SPI Extend Click configuration object. More... | |
struct | spiextend_config_data_t |
SPI Extend Click configuration data. More... | |
struct | spiextend_status_data_t |
SPI Extend Click status data. More... | |
struct | spiextend_event_data_t |
SPI Extend Click event data. More... | |
struct | spiextend_fault_data_t |
SPI Extend Click Fault data. More... | |
Enumerations | |
enum | spiextend_return_value_t { SPIEXTEND_OK = 0 , SPIEXTEND_ERROR = -1 } |
SPI Extend Click return value data. More... | |
Functions | |
void | spiextend_cfg_setup (spiextend_cfg_t *cfg) |
SPI Extend configuration object setup function. | |
err_t | spiextend_init (spiextend_t *ctx, spiextend_cfg_t *cfg) |
SPI Extend initialization function. | |
err_t | spiextend_default_cfg (spiextend_t *ctx) |
SPI Extend default configuration function. | |
err_t | spiextend_generic_write (spiextend_t *ctx, uint8_t reg, uint8_t data_in) |
SPI Extend data writing function. | |
err_t | spiextend_generic_read (spiextend_t *ctx, uint8_t reg, uint8_t *data_out) |
SPI Extend data reading function. | |
void | spiextend_get_config (spiextend_t *ctx, spiextend_config_data_t *config_data) |
SPI Extend get the configuration function. | |
void | spiextend_set_config (spiextend_t *ctx, spiextend_config_data_t config_data) |
SPI Extend set the configuration function. | |
void | spiextend_get_status (spiextend_t *ctx, spiextend_status_data_t *status_data) |
SPI Extend get the status function. | |
void | spiextend_get_event (spiextend_t *ctx, spiextend_event_data_t *event_data) |
SPI Extend get the event function. | |
void | spiextend_clear_event (spiextend_t *ctx) |
SPI Extend clear the event function. | |
void | spiextend_enable_int (spiextend_t *ctx, spiextend_event_data_t event_data) |
SPI Extend enable int function. | |
void | spiextend_get_fault (spiextend_t *ctx, spiextend_fault_data_t *fault_data) |
SPI Extend get the fault state function. | |
uint8_t | spiextend_get_word_length (spiextend_t *ctx) |
SPI Extend get the word length function. | |
void | spiextend_set_word_length (spiextend_t *ctx, uint8_t word_length) |
SPI Extend set the word length function. | |
uint8_t | spiextend_get_scratch (spiextend_t *ctx) |
SPI Extend get scratch function. | |
void | spiextend_set_scratch (spiextend_t *ctx, uint8_t scratch) |
SPI Extend set scratch function. | |
void | spiextend_set_ss1 (spiextend_t *ctx, uint8_t en_cs) |
SPI Extend set SS1 pin state function. | |
void | spiextend_set_ss2 (spiextend_t *ctx, uint8_t en_rst) |
SPI Extend set SS2 pin state function. | |
void | spiextend_set_ss3 (spiextend_t *ctx, uint8_t en_an) |
SPI Extend set SS3 pin state function. | |
uint8_t | spiextend_check_int (spiextend_t *ctx) |
SPI Extend check interrupt status function. | |
void | spiextend_rmt_spi_write (spiextend_t *ctx, uint8_t *p_tx_data, uint16_t n_bytes) |
SPI Extend generic SPI write data in Remote Mode function. | |
void | spiextend_rmt_spi_read (spiextend_t *ctx, uint8_t *p_rx_data, uint16_t n_bytes) |
SPI Extend generic SPI read data in Remote Mode function. | |
void | spiextend_rmt_write (spiextend_t *ctx, uint8_t reg, uint8_t tx_data, uint8_t sel_slave) |
SPI Extend generic write data in Remote Mode function. | |
uint8_t | spiextend_rmt_read (spiextend_t *ctx, uint8_t reg, uint8_t sel_slave) |
SPI Extend generic read data in Remote Mode function. | |
void | spiextend_rmt_multi_write (spiextend_t *ctx, uint8_t reg, uint8_t *p_tx_data, uint16_t n_bytes, uint8_t sel_slave) |
SPI Extend generic multi write data in Remote Mode function. | |
void | spiextend_rmt_multi_read (spiextend_t *ctx, uint8_t reg, uint8_t *p_rx_data, uint8_t n_bytes, uint8_t sel_slave) |
SPI Extend generic multi read data in Remote Mode function. | |
This file contains API for SPI Extend Click Driver.