SAM SPI Quick Start.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | BUF_LENGTH 20 |
[setup] [buf_length] More... | |
#define | SLAVE_SELECT_PIN CONF_MASTER_SS_PIN |
[buf_length] [slave_select_pin] More... | |
Functions | |
void | configure_spi_master (void) |
[slave_dev_inst] [setup] More... | |
int | main (void) |
[configure_spi] More... | |
Variables | |
static uint8_t | buffer [BUF_LENGTH] |
[slave_select_pin] [buffer] More... | |
struct spi_slave_inst | slave |
[dev_inst] [slave_dev_inst] More... | |
struct spi_module | spi_master_instance |
[buffer] More... | |
#define BUF_LENGTH 20 |
[setup] [buf_length]
Referenced by main().
#define SLAVE_SELECT_PIN CONF_MASTER_SS_PIN |
[buf_length] [slave_select_pin]
void configure_spi_master | ( | void | ) |
[slave_dev_inst] [setup]
[configure_spi]
[config]
[config] [slave_config]
[slave_config]
[slave_conf_defaults]
[slave_conf_defaults] [ss_pin]
[ss_pin] [slave_init]
[slave_init]
[conf_defaults]
[conf_defaults] [mux_setting]
[mux_setting]
[init]
[init]
[enable]
[enable]
int main | ( | void | ) |
[configure_spi]
[main_setup] [system_init]
[system_init] [run_config]
[run_config] [main_setup]
[main_use_case] [inf_loop]
[select_slave]
[select_slave] [write]
[write] [deselect_slave]
[deselect_slave] [light_up]
[light_up]
[inf_loop] [main_use_case]
References BUF_LENGTH, buffer, configure_spi_master(), port_pin_get_input_level(), port_pin_set_output_level(), slave, spi_master_instance, spi_select_slave(), spi_write_buffer_wait(), and system_init().
|
static |
[slave_select_pin] [buffer]
Referenced by adc_read_buffer_job(), at30tse_eeprom_read(), at30tse_eeprom_write(), at30tse_read_register(), at30tse_set_register_pointer(), dac_chan_write_buffer_job(), dma_crc_io_calculation(), eeprom_emulator_read_buffer(), eeprom_emulator_write_buffer(), main(), run_nvm_read_and_write_test(), run_nvm_update_test(), rww_eeprom_emulator_read_buffer(), rww_eeprom_emulator_write_buffer(), and sdadc_read_buffer_job().
struct spi_slave_inst slave |
[dev_inst] [slave_dev_inst]
struct spi_module spi_master_instance |
[buffer]
[dev_inst]