#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().
int main | ( | void | ) |
Main function.
Main function.
This function initializes the MAC, initiates a MLME reset request (wpan_mlme_reset_req()), and implements a the main loop.
Main function.
The master example begins by initializing required board resources. The system clock, basic GPIO pin mapping, and interrupt vectors are established.
A memory location on a TWI slave is written with a fixed test pattern which is then read back into a separate buffer. As a basic sanity check, the original write-buffer values are compared with values read from the slave to a separate buffer. An LED on the development board is illuminated when there is a match between the written and read data.
Main function.
Main function.
Initializes the clock system, board and serial output, then sets up the Sleep Manager unit test suite and runs it.
Main function.
Initializes the clock system, board and serial output, then sets up the IOPORT Service unit test suite and runs it.
Main function.
Initializes the clock system, board and serial output, then sets up the USART unit test suite and runs it.
Main function.
Initializes the clock system, board and serial output, then sets up the TWI unit test suite and runs it.
Main function.
The SAM3X_EK, SAM3X Arduino board and SAM4C_EK use two bytes length internal address EEPROM.
References board_init(), gpio_set_pin_high, gpio_set_pin_low, spi_at45dbx_mem_check(), spi_enable(), spi_master_init(), spi_master_setup_device(), SPI_MODE_0, status, and sysclk_init().
|
static |
References AT45DBX_DENSITY, AT45DBX_MSK_DENSITY, data, spi_deselect_device(), spi_read_packet(), spi_select_device(), spi_write_packet(), and status.
Referenced by main().
uint8_t data[1] = {AT45DBX_CMDC_RD_STATUS_REG} |
First Status Command Register - Second Dummy Data.
struct spi_device SPI_DEVICE_EXAMPLE |
uint16_t status |
Referenced by ak8975_ioctl(), appUartSendAck(), 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(), dump_trx_register_values(), hmc5883l_init(), hmc5883l_ioctl(), hmc5883l_selftest(), imu3000_default_init(), imu3000_event(), imu3000_init(), itg3200_default_init(), itg3200_event(), itg3200_init(), kxtf9_event(), kxtf9_init(), mac_gen_mcps_data_conf(), mac_gen_mlme_gts_conf(), mac_process_tal_tx_status(), mac_reset(), main(), mlme_get(), mlme_reset_request(), mlme_set(), mlme_set_request(), nwkTxConfirm(), pal_timer_get_id(), pal_timer_start(), pal_timer_stop(), parse_mpdu(), peer_search_initiator_tx_done_cb(), per_mode_receptor_tx_done_cb(), PHY_TaskHandler(), run_interrupt_reset_test(), run_wdt_interrupt_test(), send_reset_conf(), set_paramter_on_recptor_node(), set_tal_pib_internal(), sfh5712_init(), sfh5712_ioctl(), sfh7770_event(), sfh7770_init(), sfh7770_ioctl(), sfh7770_set_current(), sfh7770_set_rate(), sio2host_tx(), sio2ncp_tx(), spi_at45dbx_mem_check(), tal_tx_frame_done_cb(), twi_interrupt_handler(), tx_done_handling(), usr_cont_pulse_tx_confirm(), usr_cont_wave_tx_confirm(), usr_ed_scan_start_confirm(), usr_get_current_config_confirm(), usr_identify_board_confirm(), usr_identify_peer_node_confirm(), usr_mcps_data_conf(), usr_mlme_gts_conf(), usr_mlme_reset_conf(), usr_mlme_set_conf(), usr_peer_disconnect_confirm(), usr_per_test_end_indication(), usr_per_test_start_confirm(), usr_perf_get_confirm(), usr_perf_set_confirm(), usr_perf_start_confirm(), usr_pkt_stream_confirm(), usr_range_test_start_confirm(), usr_range_test_stop_confirm(), usr_register_dump_confirm(), usr_register_read_confirm(), usr_register_write_confirm(), usr_rx_on_confirm(), usr_sensor_data_get_confirm(), and usr_set_default_config_confirm().