no-OS
Classes | Enumerations | Variables
pico_spi.h File Reference

Header file for the pico spi driver. More...

#include "no_os_spi.h"
#include "hardware/spi.h"
Include dependency graph for pico_spi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pico_spi_desc
 pico platform specific SPI descriptor More...
 
struct  pico_spi_init_param
 Additional SPI config parameters. More...
 

Enumerations

enum  spi_tx_gp {
  SPI0_TX_GP3 = 3,
  SPI0_TX_GP7 = 7,
  SPI0_TX_GP19 = 19,
  SPI1_TX_GP11 = 11,
  SPI1_TX_GP15 = 15
}
 Available GP config for SPI TX. More...
 
enum  spi_rx_gp {
  SPI0_RX_GP0 = 0,
  SPI0_RX_GP4 = 4,
  SPI0_RX_GP16 = 16,
  SPI1_RX_GP8 = 8,
  SPI1_RX_GP12 = 12
}
 Available GP config for SPI RX. More...
 
enum  spi_sck_gp {
  SPI0_SCK_GP2 = 2,
  SPI0_SCK_GP6 = 6,
  SPI0_SCK_GP18 = 18,
  SPI1_SCK_GP10 = 10,
  SPI1_SCK_GP14 = 14
}
 Available GP config for SPI SCK. More...
 
enum  spi_cs_gp {
  SPI0_CS_GP1 = 1,
  SPI0_CS_GP5 = 5,
  SPI0_CS_GP17 = 17,
  SPI1_CS_GP9 = 9,
  SPI1_CS_GP13 = 13
}
 Available GP config for SPI CS. More...
 

Variables

const struct no_os_spi_platform_ops pico_spi_ops
 pico specific SPI platform ops structure More...
 

Detailed Description

Header file for the pico spi driver.

Author
RBolboac (ramon.nosp@m.a.bo.nosp@m.lboac.nosp@m.a@an.nosp@m.alog..nosp@m.com)

Copyright 2022(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Enumeration Type Documentation

◆ spi_cs_gp

enum spi_cs_gp

Available GP config for SPI CS.

Enumerator
SPI0_CS_GP1 
SPI0_CS_GP5 
SPI0_CS_GP17 
SPI1_CS_GP9 
SPI1_CS_GP13 

◆ spi_rx_gp

enum spi_rx_gp

Available GP config for SPI RX.

Enumerator
SPI0_RX_GP0 
SPI0_RX_GP4 
SPI0_RX_GP16 
SPI1_RX_GP8 
SPI1_RX_GP12 

◆ spi_sck_gp

enum spi_sck_gp

Available GP config for SPI SCK.

Enumerator
SPI0_SCK_GP2 
SPI0_SCK_GP6 
SPI0_SCK_GP18 
SPI1_SCK_GP10 
SPI1_SCK_GP14 

◆ spi_tx_gp

enum spi_tx_gp

Available GP config for SPI TX.

Enumerator
SPI0_TX_GP3 
SPI0_TX_GP7 
SPI0_TX_GP19 
SPI1_TX_GP11 
SPI1_TX_GP15 

Variable Documentation

◆ pico_spi_ops

const struct no_os_spi_platform_ops pico_spi_ops

pico specific SPI platform ops structure

pico specific SPI platform ops structure