AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
util.h
1 
21 #ifndef _AVRIO_UTIL_H_
22 #define _AVRIO_UTIL_H_
23 
24 #include <avrio/defs.h>
25 
26 __BEGIN_C_DECLS
27 /* ======================================================================== */
33 /* internal public functions ============================================== */
34 
42 void vSwapBytes (uint8_t * pucBytes, uint8_t ucSize);
43 
49 uint8_t ucUtilReverseBits (uint8_t ucByte);
50 
57 uint8_t rand8 (void);
58 
63 void srand8 (uint8_t seed);
64 
65 
66 /* public variables ======================================================= */
67 /* inline public functions ================================================ */
68 # if defined(__DOXYGEN__)
69 /*
70  * __DOXYGEN__ defined
71  * Partie documentation ne devant pas être compilée.
72  * =========================================================================
73  */
74 
78 # else
79 /*
80  * __DOXYGEN__ not defined
81  * Partie ne devant pas être documentée.
82  * =========================================================================
83  */
84 # endif /* __DOXYGEN__ not defined */
85 /* ======================================================================== */
86 __END_C_DECLS
87 #endif /* _AVRIO_UTIL_H_ defined */
88 
void srand8(uint8_t seed)
Modifie la valeur initiale du générateur à congruence linéaire utilisé par rand8() Cette valeur ne do...
void vSwapBytes(uint8_t *pucBytes, uint8_t ucSize)
Permute les octets 2 à 2.
uint8_t ucUtilReverseBits(uint8_t ucByte)
Inverse l&#39;ordre des bits d&#39;un octet.
uint8_t rand8(void)
Génére un nombre pseudo aléatoire 8 bits.