WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
ctre.h File Reference

Common header for all CTRE HAL modules. More...

#include "ctre_frames.h"

Go to the source code of this file.

Macros

#define BIT0   0x01
 
#define BIT1   0x02
 
#define BIT2   0x04
 
#define BIT3   0x08
 
#define BIT4   0x10
 
#define BIT5   0x20
 
#define BIT6   0x40
 
#define BIT7   0x80
 
#define BIT8   0x0100
 
#define BIT9   0x0200
 
#define BIT10   0x0400
 
#define BIT11   0x0800
 
#define BIT12   0x1000
 
#define BIT13   0x2000
 
#define BIT14   0x4000
 
#define BIT15   0x8000
 

Typedefs

typedef signed char INT8
 
typedef signed short INT16
 
typedef signed int INT32
 
typedef signed long long INT64
 
typedef unsigned char UINT8
 
typedef unsigned short UINT16
 
typedef unsigned int UINT32
 
typedef unsigned long long UINT64
 
typedef unsigned char UCHAR
 
typedef unsigned short USHORT
 
typedef unsigned int UINT
 
typedef unsigned long ULONG
 

Enumerations

enum  CTR_Code {
  CTR_OKAY, CTR_RxTimeout, CTR_TxTimeout, CTR_InvalidParamValue,
  CTR_UnexpectedArbId, CTR_TxFailed, CTR_SigNotUpdated, CTR_BufferFull
}
 

Detailed Description

Common header for all CTRE HAL modules.

Enumeration Type Documentation

enum CTR_Code
Enumerator
CTR_OKAY 

No Error - Function executed as expected.

CTR_RxTimeout 

CAN frame has not been received within specified period of time.

CTR_TxTimeout 

Not used.

CTR_InvalidParamValue 

Caller passed an invalid param.

CTR_UnexpectedArbId 

Specified CAN Id is invalid.

CTR_TxFailed 

Could not transmit the CAN frame.

CTR_SigNotUpdated 

Have not received an value response for signal.

CTR_BufferFull 

Caller attempted to insert data into a buffer that is full.