AT45 DataFlash(R) Device Driver. More...
#include <flash/at45.h>Go to the source code of this file.
Data Structures | |
| struct | at45_device |
| AT45 DataFlash device. More... | |
Typedefs | |
| typedef bool(* | at45_next_call_t )(struct at45_device *at45d) |
Enumerations | |
| enum | at45_device_flag { AT45_FLAG_VALID, AT45_FLAG_PROTECTED } |
AT45 device flags. More... | |
Functions | |
| static void | at45_request (struct at45_device *at45d, struct workqueue_task *task) |
| Request exclusive access to AT45 device. | |
| static void | at45_release (struct at45_device *at45d) |
| Release exclusive access to AT45 device. | |
| static void | at45_select (struct at45_device *at45d) |
| Select AT45 device (Chip select). | |
| static void | at45_deselect (struct at45_device *at45d) |
| De-select AT45 device (Chip de-select). | |
| static void | at45_write_cmd (struct at45_device *at45d, uint8_t size) |
| Write command and other opcodes to AT45 device. | |
| static void | at45_read_rsp (struct at45_device *at45d, uint8_t size) |
| Read response from AT45 device. | |
| static void | at45_cmd_read_status_reg (struct at45_device *at45d) |
| Write AT45 device command: read status register. | |
| static void | at45_cmd_read_id (struct at45_device *at45d) |
| Write AT45 device command: read ID. | |
| static void | at45_cmd_cont_array_read (struct at45_device *at45d, uint16_t page, uint16_t pos) |
| Write AT45 device command: continous array read. | |
| static void | at45_cmd_buffer_1_write (struct at45_device *at45d, uint16_t pos) |
| Write AT45 device command: buffer 1 write. | |
| static void | at45_cmd_main_memory_to_buffer_1_transfer (struct at45_device *at45d, uint16_t page) |
| Write AT45 device command: main memory to buffer 1 transfer. | |
| static void | at45_cmd_buffer_1_main_memory_program_with_erase (struct at45_device *at45d, uint16_t page) |
| Write AT45 device command: buffer 1 main memory program with erase. | |
| static void | at45_read_buf_list (struct at45_device *at45d, struct slist *buf_list) |
| Read from AT45 device into buffer list. | |
| static void | at45_write_buf_list (struct at45_device *at45d, struct slist *buf_list) |
| Write from buffer list into AT45 device. | |
| static bool | at45_rsp_status_is_ready (struct at45_device *at45d) |
| Test if AT45 device status register bit is set to ready. | |
| static bool | at45_rsp_status_is_protected (struct at45_device *at45d) |
| Test if AT45 device status register bit is set to protected. | |
| bool | at45_wait_ready (struct at45_device *at45d) |
| Actively wait for AT45 device to be ready. | |
| bool | at45_identify (struct at45_device *at45d) |
| Identify AT45 device. | |
| void | at45_device_init (struct at45_device *at45d, spi_id_t spi_id, struct spi_master *spim, struct spi_device *spid) |
| Initialize AT45 struct. | |
AT45 DataFlash(R) Device Driver.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file at45_device.h.
1.6.3