Macros | |
#define | AT45DF_CMDC_RD_MID_REG 0x9F |
#define | ATMEL_MANUFACTURER_ID 0x1F |
#define | DATA_BUFFER_SIZE 0x04 |
Functions | |
int | main (void) |
Main function. More... | |
static bool | usart_spi_at45dbx_mem_check (void) |
Variables | |
uint8_t | data [DATA_BUFFER_SIZE] = {AT45DF_CMDC_RD_MID_REG} |
uint8_t | manufacturer_id |
struct usart_spi_device | USART_SPI_DEVICE_EXAMPLE |
#define AT45DF_CMDC_RD_MID_REG 0x9F |
#define ATMEL_MANUFACTURER_ID 0x1F |
Referenced by usart_spi_at45dbx_mem_check().
#define DATA_BUFFER_SIZE 0x04 |
Referenced by usart_spi_at45dbx_mem_check().
int main | ( | void | ) |
Main function.
References board_init(), IOPORT_PIN_LEVEL_HIGH, IOPORT_PIN_LEVEL_LOW, ioport_set_pin_level(), SPI_MODE_0, sysclk_init(), usart_spi_at45dbx_mem_check(), usart_spi_enable(), USART_SPI_EXAMPLE, USART_SPI_EXAMPLE_BAUDRATE, USART_SPI_EXAMPLE_LED_PIN_EXAMPLE_1, USART_SPI_EXAMPLE_LED_PIN_EXAMPLE_2, usart_spi_init(), and usart_spi_setup_device().
|
static |
References ATMEL_MANUFACTURER_ID, data, DATA_BUFFER_SIZE, manufacturer_id, usart_spi_deselect_device(), USART_SPI_EXAMPLE, usart_spi_read_packet(), usart_spi_select_device(), and usart_spi_write_packet().
Referenced by main().
uint8_t data[DATA_BUFFER_SIZE] = {AT45DF_CMDC_RD_MID_REG} |
Referenced by usart_spi_at45dbx_mem_check().
uint8_t manufacturer_id |
Referenced by usart_spi_at45dbx_mem_check().
struct usart_spi_device USART_SPI_DEVICE_EXAMPLE |