Table of Contents

Class StatusCodeExtensions

Namespace
CTRE.Phoenix6
Assembly
Phoenix6.Hardware.dll
public static class StatusCodeExtensions
Inheritance
StatusCodeExtensions
Inherited Members

Methods

GetDescription(StatusCode)

Gets the description of this StatusCode.

public static string GetDescription(this StatusCode value)

Parameters

value StatusCode

Returns

string

Description of this StatusCode

GetName(StatusCode)

Gets the name of this StatusCode.

public static string GetName(this StatusCode value)

Parameters

value StatusCode

Returns

string

Name of this StatusCode

IsError(StatusCode)

Check if this Status Code is an error

public static bool IsError(this StatusCode value)

Parameters

value StatusCode

Status Code

Returns

bool

true if this code is an error

IsOK(StatusCode)

Check if this Status Code is OK

public static bool IsOK(this StatusCode value)

Parameters

value StatusCode

Status Code

Returns

bool

true if this code is OK

IsWarning(StatusCode)

Check if this Status Code is a warning

public static bool IsWarning(this StatusCode value)

Parameters

value StatusCode

Status Code

Returns

bool

true if this code is a warning

Value(StatusCode)

public static int Value(this StatusCode value)

Parameters

value StatusCode

Returns

int