CTRE Phoenix Pro C++ 23.0.12
Control_Interface.h File Reference
#include "ctre/phoenix/export.h"
#include <stdint.h>

Go to the source code of this file.

Functions

CTREXPORT int c_ctre_phoenixpro_requestConfigApply (const char *canbus, uint32_t ecuEncoding, double timeoutSeconds, const char *str, uint32_t strlen, bool forceApply)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlDutyCycleOut (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Output, bool EnableFOC, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlTorqueCurrentFOC (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Output, double MaxAbsDutyCycle, double Deadband, bool OverrideCoastDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlVoltageOut (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Output, bool EnableFOC, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlPositionDutyCycle (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlPositionVoltage (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlPositionTorqueCurrentFOC (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, double FeedForward, int Slot, bool OverrideCoastDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityDutyCycle (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Velocity, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityVoltage (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Velocity, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityTorqueCurrentFOC (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Velocity, double FeedForward, int Slot, bool OverrideCoastDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicDutyCycle (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicVoltage (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, bool EnableFOC, double FeedForward, int Slot, bool OverrideBrakeDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicTorqueCurrentFOC (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, double Position, double FeedForward, int Slot, bool OverrideCoastDurNeutral)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlFollower (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, int MasterID, bool OpposeMasterDirection)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlStrictFollower (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, int MasterID)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlNeutralOut (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlCoastOut (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlStaticBrake (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlBalanceBattery (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualIsolator (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, bool Enable)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualVboost (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, bool EnableClosedLoop, double TargetVoltage, double TargetDutyCycle)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualPwmJunction (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests, int JunctionSelect, double JunctionDutyCycle)
 
CTREXPORT int c_ctre_phoenixpro_RequestControlBMSClearFault (const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
 

Function Documentation

◆ c_ctre_phoenixpro_requestConfigApply()

CTREXPORT int c_ctre_phoenixpro_requestConfigApply ( const char *  canbus,
uint32_t  ecuEncoding,
double  timeoutSeconds,
const char *  str,
uint32_t  strlen,
bool  forceApply 
)

◆ c_ctre_phoenixpro_RequestControlBalanceBattery()

CTREXPORT int c_ctre_phoenixpro_RequestControlBalanceBattery ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests 
)

◆ c_ctre_phoenixpro_RequestControlBMSClearFault()

CTREXPORT int c_ctre_phoenixpro_RequestControlBMSClearFault ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests 
)

◆ c_ctre_phoenixpro_RequestControlBMSManualIsolator()

CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualIsolator ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
bool  Enable 
)

◆ c_ctre_phoenixpro_RequestControlBMSManualPwmJunction()

CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualPwmJunction ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
int  JunctionSelect,
double  JunctionDutyCycle 
)

◆ c_ctre_phoenixpro_RequestControlBMSManualVboost()

CTREXPORT int c_ctre_phoenixpro_RequestControlBMSManualVboost ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
bool  EnableClosedLoop,
double  TargetVoltage,
double  TargetDutyCycle 
)

◆ c_ctre_phoenixpro_RequestControlCoastOut()

CTREXPORT int c_ctre_phoenixpro_RequestControlCoastOut ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests 
)

◆ c_ctre_phoenixpro_RequestControlDutyCycleOut()

CTREXPORT int c_ctre_phoenixpro_RequestControlDutyCycleOut ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Output,
bool  EnableFOC,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlFollower()

CTREXPORT int c_ctre_phoenixpro_RequestControlFollower ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
int  MasterID,
bool  OpposeMasterDirection 
)

◆ c_ctre_phoenixpro_RequestControlMotionMagicDutyCycle()

CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicDutyCycle ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlMotionMagicTorqueCurrentFOC()

CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicTorqueCurrentFOC ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
double  FeedForward,
int  Slot,
bool  OverrideCoastDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlMotionMagicVoltage()

CTREXPORT int c_ctre_phoenixpro_RequestControlMotionMagicVoltage ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlNeutralOut()

CTREXPORT int c_ctre_phoenixpro_RequestControlNeutralOut ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests 
)

◆ c_ctre_phoenixpro_RequestControlPositionDutyCycle()

CTREXPORT int c_ctre_phoenixpro_RequestControlPositionDutyCycle ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlPositionTorqueCurrentFOC()

CTREXPORT int c_ctre_phoenixpro_RequestControlPositionTorqueCurrentFOC ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
double  FeedForward,
int  Slot,
bool  OverrideCoastDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlPositionVoltage()

CTREXPORT int c_ctre_phoenixpro_RequestControlPositionVoltage ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Position,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlStaticBrake()

CTREXPORT int c_ctre_phoenixpro_RequestControlStaticBrake ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests 
)

◆ c_ctre_phoenixpro_RequestControlStrictFollower()

CTREXPORT int c_ctre_phoenixpro_RequestControlStrictFollower ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
int  MasterID 
)

◆ c_ctre_phoenixpro_RequestControlTorqueCurrentFOC()

CTREXPORT int c_ctre_phoenixpro_RequestControlTorqueCurrentFOC ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Output,
double  MaxAbsDutyCycle,
double  Deadband,
bool  OverrideCoastDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlVelocityDutyCycle()

CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityDutyCycle ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Velocity,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlVelocityTorqueCurrentFOC()

CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityTorqueCurrentFOC ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Velocity,
double  FeedForward,
int  Slot,
bool  OverrideCoastDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlVelocityVoltage()

CTREXPORT int c_ctre_phoenixpro_RequestControlVelocityVoltage ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Velocity,
bool  EnableFOC,
double  FeedForward,
int  Slot,
bool  OverrideBrakeDurNeutral 
)

◆ c_ctre_phoenixpro_RequestControlVoltageOut()

CTREXPORT int c_ctre_phoenixpro_RequestControlVoltageOut ( const char *  canbus,
uint32_t  ecuEncoding,
double  updateTime,
bool  cancelOtherRequests,
double  Output,
bool  EnableFOC,
bool  OverrideBrakeDurNeutral 
)