hex.h 336 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "stdint.h"
  3. #include "stdbool.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /**
  8. * @brief Convert ASCII hex value to nibble
  9. *
  10. * @param c ASCII character
  11. * @param nibble nibble pointer, output
  12. * @return bool conversion status
  13. */
  14. bool hex_char_to_hex_nibble(char c, uint8_t* nibble);
  15. #ifdef __cplusplus
  16. }
  17. #endif