@@ -67,10 +67,10 @@ typedef enum
67
67
68
68
/**
69
69
* @brief spi bus init
70
- * @param[in] *name points to a spi device name buffer
71
- * @param[out] *fd points to a spi device handle buffer
72
- * @param[in] mode is the spi mode.
73
- * @param[in] freq is the spi running frequence
70
+ * @param[in] *name pointer to a spi device name buffer
71
+ * @param[out] *fd pointer to a spi device handle buffer
72
+ * @param[in] mode spi mode.
73
+ * @param[in] freq spi running frequence
74
74
* @return status code
75
75
* - 0 success
76
76
* - 1 init failed
@@ -80,7 +80,7 @@ uint8_t spi_init(char *name, int *fd, spi_mode_type_t mode, uint32_t freq);
80
80
81
81
/**
82
82
* @brief spi bus deinit
83
- * @param[in] fd is the spi handle
83
+ * @param[in] fd spi handle
84
84
* @return status code
85
85
* - 0 success
86
86
* - 1 deinit failed
@@ -90,9 +90,9 @@ uint8_t spi_deinit(int fd);
90
90
91
91
/**
92
92
* @brief spi bus read command
93
- * @param[in] fd is the spi handle
94
- * @param[out] *buf points to a data buffer
95
- * @param[in] len is the length of the data buffer
93
+ * @param[in] fd spi handle
94
+ * @param[out] *buf pointer to a data buffer
95
+ * @param[in] len length of the data buffer
96
96
* @return status code
97
97
* - 0 success
98
98
* - 1 read failed
@@ -102,10 +102,10 @@ uint8_t spi_read_cmd(int fd, uint8_t *buf, uint16_t len);
102
102
103
103
/**
104
104
* @brief spi bus read
105
- * @param[in] fd is the spi handle
106
- * @param[in] reg is the spi register address
107
- * @param[out] *buf points to a data buffer
108
- * @param[in] len is the length of the data buffer
105
+ * @param[in] fd spi handle
106
+ * @param[in] reg spi register address
107
+ * @param[out] *buf pointer to a data buffer
108
+ * @param[in] len length of the data buffer
109
109
* @return status code
110
110
* - 0 success
111
111
* - 1 read failed
@@ -115,10 +115,10 @@ uint8_t spi_read(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
115
115
116
116
/**
117
117
* @brief spi bus read address 16
118
- * @param[in] fd is the spi handle
119
- * @param[in] reg is the spi register address
120
- * @param[out] *buf points to a data buffer
121
- * @param[in] len is the length of the data buffer
118
+ * @param[in] fd spi handle
119
+ * @param[in] reg spi register address
120
+ * @param[out] *buf pointer to a data buffer
121
+ * @param[in] len length of the data buffer
122
122
* @return status code
123
123
* - 0 success
124
124
* - 1 read failed
@@ -128,9 +128,9 @@ uint8_t spi_read_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
128
128
129
129
/**
130
130
* @brief spi bus write command
131
- * @param[in] fd is the spi handle
132
- * @param[in] *buf points to a data buffer
133
- * @param[in] len is the length of the data buffer
131
+ * @param[in] fd spi handle
132
+ * @param[in] *buf pointer to a data buffer
133
+ * @param[in] len length of the data buffer
134
134
* @return status code
135
135
* - 0 success
136
136
* - 1 write failed
@@ -140,10 +140,10 @@ uint8_t spi_write_cmd(int fd, uint8_t *buf, uint16_t len);
140
140
141
141
/**
142
142
* @brief spi bus write
143
- * @param[in] fd is the spi handle
144
- * @param[in] reg is the spi register address
145
- * @param[in] *buf points to a data buffer
146
- * @param[in] len is the length of the data buffer
143
+ * @param[in] fd spi handle
144
+ * @param[in] reg spi register address
145
+ * @param[in] *buf pointer to a data buffer
146
+ * @param[in] len length of the data buffer
147
147
* @return status code
148
148
* - 0 success
149
149
* - 1 write failed
@@ -153,10 +153,10 @@ uint8_t spi_write(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
153
153
154
154
/**
155
155
* @brief spi bus write address 16
156
- * @param[in] fd is the spi handle
157
- * @param[in] reg is the spi register address
158
- * @param[in] *buf points to a data buffer
159
- * @param[in] len is the length of the data buffer
156
+ * @param[in] fd spi handle
157
+ * @param[in] reg spi register address
158
+ * @param[in] *buf pointer to a data buffer
159
+ * @param[in] len length of the data buffer
160
160
* @return status code
161
161
* - 0 success
162
162
* - 1 write failed
@@ -166,11 +166,11 @@ uint8_t spi_write_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
166
166
167
167
/**
168
168
* @brief spi bus write read
169
- * @param[in] fd is the spi handle
170
- * @param[in] *in_buf points to an input buffer
171
- * @param[in] in_len is the input length
172
- * @param[out] *out_buf points to an output buffer
173
- * @param[in] out_len is the output length
169
+ * @param[in] fd spi handle
170
+ * @param[in] *in_buf pointer to an input buffer
171
+ * @param[in] in_len input length
172
+ * @param[out] *out_buf pointer to an output buffer
173
+ * @param[in] out_len output length
174
174
* @return status code
175
175
* - 0 success
176
176
* - 1 write read failed
@@ -180,10 +180,10 @@ uint8_t spi_write_read(int fd, uint8_t *in_buf, uint32_t in_len, uint8_t *out_bu
180
180
181
181
/**
182
182
* @brief spi transmit
183
- * @param[in] fd is the spi handle
184
- * @param[in] *tx points to a tx buffer
185
- * @param[out] *rx points to a rx buffer
186
- * @param[in] len is the length of the data buffer
183
+ * @param[in] fd spi handle
184
+ * @param[in] *tx pointer to a tx buffer
185
+ * @param[out] *rx pointer to a rx buffer
186
+ * @param[in] len length of the data buffer
187
187
* @return status code
188
188
* - 0 success
189
189
* - 1 transmit failed
0 commit comments