CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
Platform.hpp File Reference
#include "ctre/phoenix/StatusCodes.h"
#include "ctre/phoenix/export.h"
#include "ctre/phoenix/platform/DeviceType.hpp"
#include "ctre/phoenix/platform/canframe.hpp"
#include <map>
#include <set>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  ctre
 
namespace  ctre::phoenix
 
namespace  ctre::phoenix::platform
 
namespace  ctre::phoenix::platform::can
 

Functions

CTREXPORT int32_t ctre::phoenix::platform::can::RegisterCANbus (char const *canbus, bool printErr=true)
 
CTREXPORT std::string ctre::phoenix::platform::can::GetCANivoreDevName (char const *canbus)
 
CTREXPORT std::vector< std::string > ctre::phoenix::platform::can::GetCANbusList (void)
 
CTREXPORT void ctre::phoenix::platform::can::CANbus_GetStatus (float &busUtilPerc, uint32_t &busOffCount, uint32_t &txFullCount, uint32_t &rec, uint32_t &tec, int32_t &status, char const *canbus, bool printErr=true)
 
CTREXPORT int32_t ctre::phoenix::platform::can::CANbus_SendFrame (uint32_t messageID, uint8_t const *data, uint8_t dataSize, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_SendMessage (uint32_t messageID, uint8_t const *data, uint8_t dataSize, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_SendPeriodicMessage (uint32_t messageID, uint8_t const *data, uint8_t dataSize, int32_t periodMs, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_StopPeriodicMessage (uint32_t messageID, uint8_t const *data, uint8_t dataSize, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_ReceiveMessage (uint32_t messageID, canframe_t &frame, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_WaitForMessages (std::set< uint32_t > const &messageIDs, uint16_t timeoutMs, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_OpenStreamSession (uint32_t *sessionHandle, uint32_t messageID, uint32_t messageIDMask, uint32_t maxMessages, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_CloseStreamSession (uint32_t sessionHandle, char const *canbus, bool printErr=true)
 
CTREXPORT void ctre::phoenix::platform::can::CANComm_ReadStreamSession (uint32_t sessionHandle, canframe_t *messages, uint32_t messagesToRead, uint32_t *messagesRead, int32_t *status, char const *canbus, bool printErr=true)
 
CTREXPORT int32_t ctre::phoenix::platform::can::CANComm_GetTxSchedulerStatus (void *unusedControlWorld, char const *canbus, bool printErr=true)
 
CTREXPORT int32_t ctre::phoenix::platform::can::CANComm_SetRxSchedPriority (int priority, bool useRoundRobin, char const *canbus, bool printErr=true)
 
CTREXPORT int32_t ctre::phoenix::platform::can::CANComm_SetTxSchedPriority (int priority, bool useRoundRobin, char const *canbus, bool printErr=true)
 
CTREXPORT std::string ctre::phoenix::platform::GetStackTrace (int offset)
 Get a stack trace, ignoring the first "offset" symbols.
 
CTREXPORT int32_t ctre::phoenix::platform::SimCreate (DeviceType type, int id)
 
CTREXPORT int32_t ctre::phoenix::platform::SimDestroy (DeviceType type, int id)
 
CTREXPORT int32_t ctre::phoenix::platform::SimDestroyAll ()
 
CTREXPORT int32_t ctre::phoenix::platform::SimSetPhysicsInput (DeviceType type, int id, std::string_view physicsType, double value)
 
CTREXPORT int32_t ctre::phoenix::platform::SimGetPhysicsValue (DeviceType type, int id, std::string_view physicsType, double &value)
 
CTREXPORT int32_t ctre::phoenix::platform::SimGetLastError (DeviceType type, int id)
 
CTREXPORT int32_t ctre::phoenix::platform::ReplayLoadFile (char const *filepath)
 
CTREXPORT void ctre::phoenix::platform::ReplayCloseFile ()
 
CTREXPORT bool ctre::phoenix::platform::ReplayIsFileLoaded ()
 
CTREXPORT int32_t ctre::phoenix::platform::ReplayPlay ()
 
CTREXPORT int32_t ctre::phoenix::platform::ReplayPause ()
 
CTREXPORT int32_t ctre::phoenix::platform::ReplayStop ()
 
CTREXPORT bool ctre::phoenix::platform::ReplayIsRunning (uint16_t timeoutMs)
 
CTREXPORT void ctre::phoenix::platform::ReplaySetSpeed (double speed)
 
CTREXPORT int32_t ctre::phoenix::platform::ReplayStepTiming (double stepTimeSeconds)