6060/* Constructor */
6161
6262/* *
63- * @brief Constructor, initialize internal attributes.
64- */
63+ * @details
64+ * This constructor initializes all attributtes of the CLI class.
65+ */
6566MINBASECLI_AVR::MINBASECLI_AVR ()
6667{
6768 this ->iface = NULL ;
@@ -72,9 +73,10 @@ MINBASECLI_AVR::MINBASECLI_AVR()
7273/* Specific Device/Framework HAL Methods */
7374
7475/* *
75- * @brief Hardware Abstraction Layer setup CLI interface.
76- * @return If CLI has been successfully initialized.
77- */
76+ * @details
77+ * This function should get and initialize the interface element that is going
78+ * to be used by the CLI.
79+ */
7880bool MINBASECLI_AVR::hal_setup (void * iface, const uint32_t baud_rate)
7981{
8082 this ->iface = iface;
@@ -84,9 +86,10 @@ bool MINBASECLI_AVR::hal_setup(void* iface, const uint32_t baud_rate)
8486}
8587
8688/* *
87- * @brief Check if the internal CLI HAL interface has received any data.
88- * @return The number of bytes received by the interface.
89- */
89+ * @details
90+ * This function return the number of bytes received by the interface that are
91+ * available to be read.
92+ */
9093size_t MINBASECLI_AVR::hal_iface_available ()
9194{
9295 _IFACE* _Serial = (_IFACE*) this ->iface ;
@@ -95,9 +98,9 @@ size_t MINBASECLI_AVR::hal_iface_available()
9598}
9699
97100/* *
98- * @brief Read a byte from the CLI HAL interface.
99- * @return The byte read from the interface.
100- */
101+ * @details
102+ * This function returns a received byte from the interface.
103+ */
101104uint8_t MINBASECLI_AVR::hal_iface_read ()
102105{
103106 uint8_t read_byte = 0 ;
@@ -111,9 +114,9 @@ uint8_t MINBASECLI_AVR::hal_iface_read()
111114}
112115
113116/* *
114- * @brief Print a byte with ASCII encode to CLI HAL interface.
115- * @param data_byte Byte of data to write .
116- */
117+ * @details
118+ * This function send a byte through the interface .
119+ */
117120void MINBASECLI_AVR::hal_iface_print (const uint8_t data_byte)
118121{
119122 _IFACE* _Serial = (_IFACE*) this ->iface ;
0 commit comments