|
3 | 3 | *
|
4 | 4 | * Created on: 21.05.2021
|
5 | 5 | * Author: serca
|
| 6 | + * |
| 7 | + * TODO: Add Comment for wizfi360_required.h |
| 8 | + * |
6 | 9 | */
|
7 | 10 |
|
8 | 11 | #ifndef INCLUDES_WIZFI360_REQUIRED_H_
|
|
12 | 15 | /* Target specific UART functions to be implemented -----------------------------------------*/
|
13 | 16 |
|
14 | 17 | /*
|
15 |
| - * TODO: Comment on WIZFI360_UART_StartContinousReception |
| 18 | + * @brief Must start the UART in continous reception mode. |
| 19 | + * @note This target-specific function must be implemented by user. |
16 | 20 | */
|
17 | 21 | extern void WIZFI360_UART_StartContinousReception();
|
18 | 22 |
|
19 | 23 | #ifdef WIZFI360_UART_TX_MODE_NON_BLOCKING
|
20 |
| -/* |
21 |
| - * TODO: Comment on WIZFI360_UART_SendNonBlockingMode |
| 24 | +/** |
| 25 | + * @brief Must send an amount of data to WizFi360 module in interrupt mode. |
| 26 | + * @note This target-specific function must be implemented by user. |
| 27 | + * @param pData Pointer to data buffer (u8 or u16 data elements). |
| 28 | + * @param Size Amount of data elements (u8 or u16) to be sent. |
| 29 | + * @retval None |
22 | 30 | */
|
23 | 31 | extern void WIZFI360_UART_SendNonBlockingMode(uint8_t* pData, uint16_t Size);
|
24 | 32 | #else
|
25 |
| -/* |
26 |
| - * TODO: Comment on WIZFI360_UART_SendBlockingMode |
| 33 | +/** |
| 34 | + * @brief Must send an amount of data to WizFi360 module in blocking mode. |
| 35 | + * @note This target-specific function must be implemented by user. |
| 36 | + * @param pData Pointer to data buffer (u8 or u16 data elements). |
| 37 | + * @param Size Amount of data elements (u8 or u16) to be sent. |
| 38 | + * @retval None |
27 | 39 | */
|
28 | 40 | extern void WIZFI360_UART_SendBlockingMode(uint8_t* pData, uint16_t Size, uint16_t Timeout);
|
29 | 41 | #endif
|
30 | 42 |
|
31 | 43 | /*********************************************************************************************/
|
32 | 44 | /* Target specific Reset functions to be implemented ----------------------------------------*/
|
33 | 45 |
|
34 |
| -/* |
35 |
| - * TODO: Comment on WIZFI360_WriteResetPinLow |
36 |
| - */ |
| 46 | +/** |
| 47 | + * @brief Must set the RST pin of the module to low. |
| 48 | + * @note This target-specific function must be implemented by user. |
| 49 | + * @retval None |
| 50 | + */ |
37 | 51 | extern void WIZFI360_WriteResetPinLow();
|
38 | 52 |
|
39 |
| -/* |
40 |
| - * TODO: Comment on WIZFI360_WriteResetPinHigh |
41 |
| - */ |
| 53 | +/** |
| 54 | + * @brief Must set the RST pin of the module to high. |
| 55 | + * @note This target-specific function must be implemented by user. |
| 56 | + * @retval None |
| 57 | + */ |
42 | 58 | extern void WIZFI360_WriteResetPinHigh();
|
43 | 59 |
|
44 |
| -/* |
45 |
| - * TODO: Comment on WIZFI360_PreResetHard |
46 |
| - */ |
| 60 | +/** |
| 61 | + * @brief This function executes before hard-reset is performed. |
| 62 | + * @note Writing the reset pin to low could lead to errors on UART lines. |
| 63 | + * Thus, any UART operation should be aborted and the UART reception |
| 64 | + * should be disabled, before resetting the wizfi360 module. |
| 65 | + * @note This target-specific function must be implemented by user. |
| 66 | + * @retval None |
| 67 | + */ |
47 | 68 | extern void WIZFI360_PreResetHard();
|
48 | 69 |
|
49 |
| -/* |
50 |
| - * TODO: Comment on WIZFI360_PostResetHard |
51 |
| - */ |
| 70 | +/** |
| 71 | + * @brief This function executes after hard-reset is performed. |
| 72 | + * @note In this function, UART could be re-enabled, if it was disabled |
| 73 | + * before hard-reset. |
| 74 | + * @note This target-specific function must be implemented by user. |
| 75 | + * @retval None |
| 76 | + */ |
52 | 77 | extern void WIZFI360_PostResetHard();
|
53 | 78 |
|
54 |
| -/* |
55 |
| - * TODO: Comment on WIZFI360_Delay |
56 |
| - */ |
| 79 | +/** |
| 80 | + * @brief Must provide a delay (in milliseconds). |
| 81 | + * @note This target-specific function must be implemented by user. |
| 82 | + * @param Delay specifies the delay time length, in milliseconds. |
| 83 | + * @retval None |
| 84 | + */ |
57 | 85 | extern void WIZFI360_Delay(uint32_t Delay);
|
58 | 86 |
|
59 | 87 | /*********************************************************************************************/
|
60 | 88 | /* User specific callback functions to be implemented ---------------------------------------*/
|
61 | 89 |
|
| 90 | +// Todo: Provide wizfi360 callback registration for user (instead of extern declaration) |
| 91 | + |
62 | 92 | #ifdef WIZFI360_CALLBACK_USED_COMMAND_COMPLETE
|
63 |
| -/* |
64 |
| - * TODO: Comment on WIZFI360_CommandCpltCallback |
65 |
| - */ |
66 | 93 | extern void WIZFI360_CommandCpltCallback(WIZFI360_CommandIdTypeDef command,
|
67 | 94 | WIZFI360_ResponseTypeDef response);
|
68 | 95 | #endif
|
69 | 96 |
|
70 | 97 | #ifdef WIZFI360_CALLBACK_USED_WIFI_CONNECTED
|
71 |
| -/* |
72 |
| - * TODO: Comment on WIZFI360_WifiConnectedCallback |
73 |
| - */ |
74 | 98 | extern void WIZFI360_WifiConnectedCallback();
|
75 | 99 | #endif
|
76 | 100 |
|
77 | 101 | #ifdef WIZFI360_CALLBACK_USED_WIFI_DISCONNECTED
|
78 |
| -/* |
79 |
| - * TODO: Comment on WIZFI360_WifiDisconnectedCallback |
80 |
| - */ |
81 | 102 | extern void WIZFI360_WifiDisconnectedCallback();
|
82 | 103 | #endif
|
83 | 104 |
|
84 | 105 | #ifdef WIZFI360_CALLBACK_USED_WIFI_CONNECT_FAILED
|
85 |
| -/* |
86 |
| - * TODO: Comment on WIZFI360_WifiConnectFailedCallback |
87 |
| - */ |
88 | 106 | extern void WIZFI360_WifiConnectFailedCallback();
|
89 | 107 | #endif
|
90 | 108 |
|
91 | 109 | #ifdef WIZFI360_CALLBACK_USED_MODULE_READY
|
92 |
| -/* |
93 |
| - * TODO: Comment on WIZFI360_ModuleReadyCallback |
94 |
| - */ |
95 | 110 | extern void WIZFI360_ModuleReadyCallback();
|
96 | 111 | #endif
|
97 | 112 |
|
98 |
| -/* |
99 |
| - * TODO: Comment on WIZFI360_RegisterSubscribeCallbacks |
100 |
| - */ |
101 | 113 | extern void WIZFI360_RegisterSubscribeCallbacks();
|
102 | 114 |
|
103 | 115 | /*********************************************************************************************/
|
|
0 commit comments