Atmel Software Framework

spi_master_example.c File Reference
#include "compiler.h"
#include "preprocessor.h"
#include "board.h"
#include "gpio.h"
#include "sysclk.h"
#include "spi_master.h"
#include "conf_spi_master_example.h"

Macros

AT45DBX Group C Commands
#define AT45DBX_CMDC_RD_STATUS_REG   0xD7
 
Bit-Masks and Values for the Status Register
#define AT45DBX_MSK_DENSITY   0x3C
 Device density bit-mask. More...
 
#define AT45DBX_DENSITY   0x3C
 Device density value. More...
 

Functions

int main (void)
 Main function. More...
 
static bool spi_at45dbx_mem_check (void)
 

Variables

uint8_t data [1] = {AT45DBX_CMDC_RD_STATUS_REG}
 First Status Command Register - Second Dummy Data. More...
 
struct spi_device SPI_DEVICE_EXAMPLE
 
uint16_t status
 

#define AT45DBX_CMDC_RD_STATUS_REG   0xD7

Status Register Read (Serial/8-bit Mode).

#define AT45DBX_DENSITY   0x3C

Device density value.

Referenced by at45dbx_mem_check(), and spi_at45dbx_mem_check().

#define AT45DBX_MSK_DENSITY   0x3C

Device density bit-mask.

Referenced by spi_at45dbx_mem_check().

static bool spi_at45dbx_mem_check ( void  )
static

struct spi_device SPI_DEVICE_EXAMPLE
Initial value:
= {
.id = SPI_DEVICE_EXAMPLE_ID
}
uint16_t status

Referenced by ai_task(), ai_usb_ms_audio_nav_setpos(), ai_usb_ms_nav_dir_cd(), ai_usb_ms_nav_dir_gotoparent(), ai_usb_ms_nav_dir_root(), ai_usb_ms_nav_drive_mount(), ai_usb_ms_nav_drive_set(), ai_usb_ms_nav_file_goto(), ai_usb_ms_nav_file_isdir(), ai_usb_ms_nav_file_next(), ai_usb_ms_nav_file_previous(), ai_usb_ms_nav_getplayfile(), ai_usb_ms_read_string(), ai_usb_ms_specific_audio_nav_get_folder_name(), ai_usb_ms_specific_nav_getplaylistfile(), ak8975_ioctl(), AppEngineConnectButton(), AppEngineInquiryButton(), at25dfx_read_status(), at42qt1060_get_detect_status(), at45dbx_mem_check(), at45dbx_wait_ready(), bma020_init(), bma150_event(), bma150_init(), bma180_init(), bma220_event(), bma220_init(), bma222_event(), bma222_init(), bma250_event(), bma250_init(), bmp085_init(), bmp180_init(), bmp_ioctl(), device_cdc_task(), dip204_wait_busy(), fat_check_device(), gpio_enable_module(), hmc5883l_init(), hmc5883l_ioctl(), hmc5883l_selftest(), host_get_data(), host_hid_get_descriptor(), host_mass_storage_task(), host_ms_inquiry(), host_ms_request_sense(), host_read_10_extram(), host_read_10_ram(), host_read_capacity(), host_send_data(), host_test_unit_ready(), host_transfer_control(), host_wr_protect(), host_write_10_extram(), imu3000_default_init(), imu3000_event(), imu3000_init(), int_handler_usart(), io_getc(), ISR(), itg3200_default_init(), itg3200_event(), itg3200_init(), kxtf9_event(), kxtf9_init(), low_level_input(), main(), mem_read_capacity(), mem_test_unit_ready(), memory_2_ram(), memory_2_usb(), mxt_init_device(), mxt_probe_device(), mxt_process_messages(), mxt_read_info_block(), mxt_read_touch_event(), nav_dir_name(), nav_filelist_exist(), nav_getcwd(), nav_partition_label(), navauto_mov_explorer_is_dir(), navauto_open(), process_pqueue(), ram_2_memory(), reader_id3_album(), reader_id3_artist(), reader_id3_duration(), reader_id3_genre(), reader_id3_picture(), reader_id3_title(), reader_id3_track(), reader_id3_year(), run_byte_access_test(), run_check_presence_test(), run_fifo_flush_test(), run_fifo_overflow_test(), run_fifo_push_pull_test(), run_fifo_size_test(), run_fifo_underflow_test(), run_generic_clock_test(), run_memory_check_test(), run_memory_range_check_test(), run_multiple_sector_access_test(), run_osc32_test(), run_osc_test(), run_pll_dfll_test(), run_sector_access_test(), run_sync_clock_test(), sd_mmc_spi_lock_operation(), sd_mmc_spi_usb_write_10(), sensor_device_id(), sensor_get_sample_interval(), sensor_get_threshold(), sensor_irq_connect(), sfh5712_init(), sfh5712_ioctl(), sfh7770_event(), sfh7770_init(), sfh7770_ioctl(), sfh7770_set_current(), sfh7770_set_rate(), sio2host_tx(), sio2ncp_tx(), spi_at45dbx_mem_check(), stream_mem_to_mem(), ttcp_start(), twi_master_init(), twi_master_setup(), twi_master_write_ex(), udi_msc_process_trans(), udi_msc_trans_ack(), ulReadMDIO(), usb_2_memory(), usb_pipe_interrupt(), ushell_cmd_sync(), vWriteMDIO(), and xMACBInit().