WPILibC++
2020.3.2
SPITypes.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2018-2019 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
30
31
#ifdef __cplusplus
32
namespace
hal
{
33
38
using
SPIPort = Handle<HAL_SPIPort, HAL_SPI_kInvalid>;
39
40
}
// namespace hal
41
#endif
42
hal
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition:
UnsafeDIO.h:15
hal
src
main
native
include
hal
SPITypes.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16