CTRE Phoenix Pro C++ 23.0.12
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 <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)
 
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. More...
 
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)