Typedef » Historique » Version 1
Patrice Nadeau, 2024-01-27 15:00
1 | 1 | Patrice Nadeau | # Typedef |
---|---|---|---|
2 | |||
3 | ## Règles |
||
4 | 1. En minuscule |
||
5 | 1. Suivie de _t |
||
6 | |||
7 | ## Exemple |
||
8 | ```c |
||
9 | /** |
||
10 | * @brief Type de la structure dans la librairie `ds1305` |
||
11 | */ |
||
12 | typedef struct { |
||
13 | /** @brief Dernier deux chiffres : ≥ 00, ≤ 99 */ |
||
14 | uint8_t year; |
||
15 | /** @brief 01 - 12 */ |
||
16 | uint8_t month; |
||
17 | /** @brief 01 - 31 */ |
||
18 | uint8_t date; |
||
19 | /** @brief 1 - 7 */ |
||
20 | uint8_t day; |
||
21 | /** @brief 00 - 23 */ |
||
22 | uint8_t hours; |
||
23 | /** @brief 00 - 59 */ |
||
24 | uint8_t minutes; |
||
25 | /** @brief 00 - 59 */ |
||
26 | uint8_t seconds; |
||
27 | } ds1305_time_t; |
||
28 | ``` |
||
29 | |||
30 | ### Justifications |