Arduino Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Functions
util Namespace Reference

Classes

struct  has_i2c_read_impl
 
struct  has_i2c_read_impl< T, false >
 
struct  has_i2c_read
 
struct  has_i2c_write_impl
 
struct  has_i2c_write_impl< T, false >
 
struct  has_i2c_write
 
struct  has_print_impl
 
struct  has_print_impl< T, false >
 
struct  has_print
 
struct  has_serialize_impl
 
struct  has_serialize_impl< T, false >
 
struct  has_serialize
 
struct  mean_trait
 
struct  list_item
 
struct  list_end
 
struct  remove_void
 
struct  remove_void< list_item< stored_type, next_list_item > >
 
struct  remove_void< list_item< void, next_list_item > >
 
struct  make_list
 
struct  concatinate_lists
 
struct  concatinate_lists< list_end, list2 >
 
struct  unique_list_walker
 
struct  unique_list_walker< target, list_item< target, list > >
 
struct  unique_list_walker< target, list_end >
 
struct  unique_list
 
struct  unique_list< list_end >
 
struct  last_item
 
struct  last_item< list_item< item, list_end > >
 
struct  remove_last
 
struct  remove_last< list_item< item, list_end > >
 
struct  invert_list
 
struct  invert_list< list_item< item, list_end > >
 

Functions

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

Function Documentation

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