1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /**
- * NUM2STR - Functions to handle the conversion of numeric vales to strings.
- *
- * @author Neven Boyanov
- *
- * This is part of the Tinusaur/TinyAVRLib project.
- *
- * Copyright (c) 2017 Neven Boyanov, The Tinusaur Team. All Rights Reserved.
- * Distributed as open source software under MIT License, see LICENSE.txt file.
- * Retain in your source code the link http://tinusaur.org to the Tinusaur project.
- *
- * Source code available at: https://bitbucket.org/tinusaur/tinyavrlib
- *
- */
- // ============================================================================
- #ifndef NUM2STR_H
- #define NUM2STR_H
- // ----------------------------------------------------------------------------
- #include <stdint.h>
- // ----------------------------------------------------------------------------
- #define USINT2DECASCII_MAX_DIGITS 5
- #define USINT2HEXASCII_MAX_DIGITS 4
- #define USINT2BINASCII_MAX_DIGITS 16
- // ----------------------------------------------------------------------------
- uint8_t usint2decascii(uint16_t, char *);
- uint8_t usint2hexascii(uint16_t, char *);
- uint8_t usint2binascii(uint16_t, char *);
- // ----------------------------------------------------------------------------
- #endif
- // ============================================================================
|