Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
689 B

  1. /*!
  2. * \file utl/core/types.h
  3. * \brief Basic type alias support
  4. */
  5. #ifndef __utl_core_types_h__
  6. #define __utl_core_types_h__
  7. #include <cstddef>
  8. #include <cstdint>
  9. //#include <type_traits>
  10. namespace utl {
  11. //! \name byte and word types
  12. //! @{
  13. using byte_t = uint8_t; //!< 8 bits wide
  14. using word_t = uint16_t; //!< 16 bits wide
  15. using dword_t = uint32_t; //!< 32 bits wide
  16. //! @}
  17. //! \name size and index
  18. //! @{
  19. using size_t = std::size_t;
  20. using index_t = size_t; //!< index_t and size_t mend to be interchangeable
  21. using ptrdiff_t= std::ptrdiff_t;
  22. //! @}
  23. }
  24. #endif /* __utl_core_types_h__ */