Skip to content

Commit 99f2107

Browse files
0xc0170maciejbocianski
authored andcommitted
QSPI: hal doxygen fixes
Small corrections, fixing typos in the documentation
1 parent c778c90 commit 99f2107

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

hal/qspi_api.h

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
* @{
3434
*/
3535

36-
/** QSPI HAL object declaration
36+
/** QSPI HAL object
3737
*/
3838
typedef struct qspi_s qspi_t;
3939

@@ -47,7 +47,7 @@ typedef enum qspi_bus_width {
4747
QSPI_CFG_BUS_QUAD,
4848
} qspi_bus_width_t;
4949

50-
/** Address size
50+
/** Address size in bits
5151
*/
5252
typedef enum qspi_address_size {
5353
QSPI_CFG_ADDR_SIZE_8,
@@ -56,7 +56,7 @@ typedef enum qspi_address_size {
5656
QSPI_CFG_ADDR_SIZE_32,
5757
} qspi_address_size_t;
5858

59-
/** Alternative size
59+
/** Alternative size in bits
6060
*/
6161
typedef enum qspi_alt_size {
6262
QSPI_CFG_ALT_SIZE_8,
@@ -65,9 +65,9 @@ typedef enum qspi_alt_size {
6565
QSPI_CFG_ALT_SIZE_32,
6666
} qspi_alt_size_t;
6767

68-
/** QSPI command declaration
68+
/** QSPI command
6969
*
70-
* Defines a frame format
70+
* Defines a frame format. It consists of instruction, address, alternative, dummy count and data
7171
*/
7272
typedef struct qspi_command {
7373
struct {
@@ -148,35 +148,33 @@ qspi_status_t qspi_frequency(qspi_t *obj, int hz);
148148
* @param obj QSPI object
149149
* @param command QSPI command
150150
* @param data TX buffer
151-
* @param[in,out] in - length TX buffer length in bytes, out - number of bytes written
151+
* @param[in,out] length in - TX buffer length in bytes, out - number of bytes written
152152
* @return QSPI_STATUS_OK if the data has been succesfully sent
153153
QSPI_STATUS_INVALID_PARAMETER if invalid parameter found
154154
QSPI_STATUS_ERROR otherwise
155155
*/
156156
qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void *data, size_t *length);
157157

158-
/** Send a command (and optionally data) and get the response. Can be used to send/receive device specific commands.
158+
/** Send a command (and optionally data) and get the response. Can be used to send/receive device specific commands
159159
*
160160
* @param obj QSPI object
161161
* @param command QSPI command
162162
* @param tx_data TX buffer
163-
* @param tx_length pointer to variable holding TX buffer length
164-
* @param rx_data TX buffer
165-
* @param rx_length pointer to variable holding TX buffer length
163+
* @param tx_length TX buffer length in bytes
164+
* @param rx_data RX buffer
165+
* @param rx_length RX buffer length in bytes
166166
* @return QSPI_STATUS_OK if the data has been succesfully sent
167167
QSPI_STATUS_INVALID_PARAMETER if invalid parameter found
168168
QSPI_STATUS_ERROR otherwise
169169
*/
170-
171170
qspi_status_t qspi_command_transfer(qspi_t *obj, const qspi_command_t *command, const void *tx_data, size_t tx_size, void *rx_data, size_t rx_size);
172171

173-
174172
/** Receive a command and block of data
175173
*
176174
* @param obj QSPI object
177175
* @param command QSPI command
178176
* @param data RX buffer
179-
* @param[in,out] in - length RX buffer length in bytes, out - number of bytes read
177+
* @param[in,out] length in - RX buffer length in bytes, out - number of bytes read
180178
* @return QSPI_STATUS_OK if data has been succesfully received
181179
QSPI_STATUS_INVALID_PARAMETER if invalid parameter found
182180
QSPI_STATUS_ERROR otherwise

0 commit comments

Comments
 (0)