Generic SPI abstraction for polled operation. More...
#include <bitops.h>#include <board/spi.h>Go to the source code of this file.
Data Structures | |
| struct | spi_master_polled |
| Polled SPI master defintion. More... | |
| struct | spi_device |
| Polled SPI device defintion. More... | |
Typedefs | |
| typedef void(* | spi_start_func_t )(struct spi_master *spim, uint8_t tx_byte) |
| SPI start transfer function. | |
Enumerations | |
| enum | spi_polled_op_flags { SPI_OP_WRITE, SPI_OP_READ, SPI_OP_BUFFER } |
Flags for SPI polled operation. More... | |
Functions | |
| static struct spi_master_polled * | spi_master_polled_of (struct spi_master *base) |
| Return SPI master polled from SPI master. | |
| void | spi_polled_start (struct spi_master *spim, uint8_t tx_byte, size_t residue) |
| Start polled SPI transfer. | |
| static bool | spi_polled_is_buffer_op (struct spi_master *spim) |
| Test if polled SPI operation is using buffer list. | |
| static void | spi_polled_sched_poll (struct spi_master *spim) |
| Schedule SPI poll operation. | |
| void | spi_polled_next_buffer (struct workqueue_task *task) |
| Iterate to next buffer in SPI buffer list operation. | |
| static void | spi_polled_sched_next_buffer (struct spi_master *spim) |
| Schedule buffer list handling. | |
| void | spi_polled_write (struct spi_master *spim, const uint8_t *data, size_t len) |
| void | spi_polled_read (struct spi_master *spim, uint8_t *data, size_t len) |
| void | spi_polled_exchange (struct spi_master *spim, const uint8_t *write, uint8_t *read, size_t len) |
| void | spi_polled_write_buf_list (struct spi_master *spim, struct slist *buf_list) |
| void | spi_polled_read_buf_list (struct spi_master *spim, struct slist *buf_list) |
| void | spi_polled_exchange_buf_list (struct spi_master *spim, struct slist *write_buf_list, struct slist *read_buf_list) |
| static void | spi_polled_buf_list_init (struct spi_master *spim) |
| Initialize polled SPI master. | |
| void | spi_polled_master_init (struct spi_master *spim, workqueue_func_t poll, spi_start_func_t start) |
| Initialize polled SPI master struct. | |
Generic SPI abstraction for polled operation.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file spi_polled.h.
1.6.3