TMC5160 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tmc5160::AckSet Struct Reference

A set of acknowledgements. More...

#include <tmc5160_types.hpp>

Public Member Functions

constexpr bool Has (Ack a) const noexcept
 Whether a is in the set.
 
constexpr AckSet With (Ack a) const noexcept
 A copy with a added.
 

Public Attributes

uint32_t bits {0}
 The Ack values or-ed together.
 

Detailed Description

A set of acknowledgements.

Member Function Documentation

◆ Has()

constexpr bool tmc5160::AckSet::Has ( Ack  a) const
inlineconstexprnoexcept

Whether a is in the set.

Parameters
aThe acknowledgement.
Returns
true when present.

◆ With()

constexpr AckSet tmc5160::AckSet::With ( Ack  a) const
inlineconstexprnoexcept

A copy with a added.

Parameters
aThe acknowledgement.
Returns
The new set.

The documentation for this struct was generated from the following file: