class CslAccuracy

Defined at line 922 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

Represents CSL accuracy.

Public Members

static const uint8_t kWorstClockAccuracy
static const uint8_t kWorstUncertainty

Public Methods

void Init ()

Initializes the CSL accuracy using `kWorstClockAccuracy` and `kWorstUncertainty` values.

Defined at line 931 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

uint8_t GetClockAccuracy ()

Returns the CSL clock accuracy.

Defined at line 942 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void SetClockAccuracy (uint8_t aClockAccuracy)

Sets the CSL clock accuracy.

Parameters

aClockAccuracy [in] The CSL clock accuracy in ± ppm.

Defined at line 949 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

uint8_t GetUncertainty ()

Returns the CSL uncertainty.

Defined at line 956 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

uint16_t GetUncertaintyInMicrosec ()

Gets the CLS uncertainty in microseconds.

Defined at line 963 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void SetUncertainty (uint8_t aUncertainty)

Sets the CSL uncertainty.

Parameters

aUncertainty [in] The CSL uncertainty in units 10 microseconds.

Defined at line 970 of file ../../third_party/openthread/src/core/mac/mac_types.hpp