Arduino Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Namespaces | Functions
byte_operation.hpp File Reference

Go to the source code of this file.

Namespaces

 util
 

Functions

template<typename T >
void util::clear_byte (T &t, detail::byte_op_size_type const &pos)
 
template<typename T >
uint8_t util::read_byte (T const &t, detail::byte_op_size_type const &pos)
 
template<typename T >
void util::write_byte (T &t, detail::byte_op_size_type const &pos, uint8_t const &in)
 
template<typename T >
bool util::read_bit (T const &unit, uint8_t const &pos)
 
template<typename T >
void util::set_bit (T &unit, uint8_t const &pos)
 
template<typename T >
void util::clear_bit (T &unit, uint8_t const &pos)
 
template<typename T >
void util::write_bit (T &unit, uint8_t const &pos, bool state=true)
 
template<typename T >
void util::flip_bit (T &unit, uint8_t const &pos)