#include <aversive.h>
#include <aversive/parts.h>
#include <aversive/error.h>
#include <stdlib.h>
#include <string.h>
#include <spi.h>
#include <spi_config.h>
Go to the source code of this file.
Typedefs | |
typedef struct _ss_pin | ss_pin_t |
Functions | |
int8_t | spi_register_ss_line (volatile uint8_t *port, uint8_t bitnum) |
void | spi_set_data_order (uint8_t order) |
uint8_t | spi_get_data_order (void) |
void | spi_init (spi_mode_t mode, spi_format_t format, spi_clk_rate_t clk_rate) |
spi_mode_t | spi_get_mode (void) |
uint8_t | spi_send_and_receive_byte (uint8_t byte) |
void | spi_send_byte (uint8_t byte) |
uint8_t | spi_receive_byte (void) |
uint8_t | spi_slave_select (uint8_t slave) |
void | spi_slave_deselect (uint8_t slave) |
void | spi_display_ss_lines (void) |
typedef struct _ss_pin ss_pin_t |
void spi_display_ss_lines | ( | void | ) |
uint8_t spi_get_data_order | ( | void | ) | [inline] |
spi_mode_t spi_get_mode | ( | void | ) | [inline] |
void spi_init | ( | spi_mode_t | mode, | |
spi_format_t | format, | |||
spi_clk_rate_t | clk_rate | |||
) |
uint8_t spi_receive_byte | ( | void | ) |
Definition at line 181 of file spi.c.
References spi_send_and_receive_byte().
Referenced by cc2420_read_ram(), cc2420_read_register(), cc2420_read_rxfifo(), and encoders_spi_manage().
int8_t spi_register_ss_line | ( | volatile uint8_t * | port, | |
uint8_t | bitnum | |||
) |
Definition at line 55 of file spi.c.
References DEBUG, E_SPI, and NOTICE.
Referenced by cc2420_init(), and encoders_spi_init().
uint8_t spi_send_and_receive_byte | ( | uint8_t | byte | ) |
Definition at line 156 of file spi.c.
Referenced by cc2420_get_status(), cc2420_strobe_register(), cc2420_write_rxfifo(), cc2420_write_txfifo(), spi_receive_byte(), and spi_send_byte().
void spi_send_byte | ( | uint8_t | byte | ) | [inline] |
Definition at line 173 of file spi.c.
References spi_send_and_receive_byte().
Referenced by cc2420_init(), cc2420_read_ram(), cc2420_read_register(), cc2420_read_rxfifo(), cc2420_write_ram(), cc2420_write_register(), cc2420_write_rxfifo(), and cc2420_write_txfifo().
void spi_set_data_order | ( | uint8_t | order | ) | [inline] |
void spi_slave_deselect | ( | uint8_t | slave | ) |
uint8_t spi_slave_select | ( | uint8_t | slave | ) |