WPILibC++  2019.2.1-3-g1349dd4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
SPITypes.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <stdint.h>
11 
12 #include "hal/Types.h"
13 
20 // clang-format off
21 HAL_ENUM(HAL_SPIPort) {
22  HAL_SPI_kInvalid = -1,
23  HAL_SPI_kOnboardCS0,
24  HAL_SPI_kOnboardCS1,
25  HAL_SPI_kOnboardCS2,
26  HAL_SPI_kOnboardCS3,
27  HAL_SPI_kMXP
28 };
29 // clang-format on