Skip to content

Commit 049738e

Browse files
authored
Merge pull request #5 from libdriver/dev
fix: fix doc errors
2 parents 560daad + 53e6fdb commit 049738e

File tree

17 files changed

+296
-290
lines changed

17 files changed

+296
-290
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.5 (2025-03-05)
2+
3+
## Bug Fixes
4+
5+
- fix doc errors
6+
17
## 1.0.4 (2025-01-05)
28

39
## Bug Fixes

project/raspberrypi4b/interface/inc/iic.h

+31-31
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ extern "C" {
5555

5656
/**
5757
* @brief iic bus init
58-
* @param[in] *name points to an iic device name buffer
59-
* @param[out] *fd points to an iic device handle buffer
58+
* @param[in] *name pointer to an iic device name buffer
59+
* @param[out] *fd pointer to an iic device handle buffer
6060
* @return status code
6161
* - 0 success
6262
* - 1 init failed
@@ -66,7 +66,7 @@ uint8_t iic_init(char *name, int *fd);
6666

6767
/**
6868
* @brief iic bus deinit
69-
* @param[in] fd is the iic handle
69+
* @param[in] fd iic handle
7070
* @return status code
7171
* - 0 success
7272
* - 1 deinit failed
@@ -76,10 +76,10 @@ uint8_t iic_deinit(int fd);
7676

7777
/**
7878
* @brief iic bus read command
79-
* @param[in] fd is the iic handle
80-
* @param[in] addr is the iic device write address
81-
* @param[out] *buf points to a data buffer
82-
* @param[in] len is the length of the data buffer
79+
* @param[in] fd iic handle
80+
* @param[in] addr iic device write address
81+
* @param[out] *buf pointer to a data buffer
82+
* @param[in] len length of the data buffer
8383
* @return status code
8484
* - 0 success
8585
* - 1 read failed
@@ -89,11 +89,11 @@ uint8_t iic_read_cmd(int fd, uint8_t addr, uint8_t *buf, uint16_t len);
8989

9090
/**
9191
* @brief iic bus read
92-
* @param[in] fd is the iic handle
93-
* @param[in] addr is the iic device write address
94-
* @param[in] reg is the iic register address
95-
* @param[out] *buf points to a data buffer
96-
* @param[in] len is the length of the data buffer
92+
* @param[in] fd iic handle
93+
* @param[in] addr iic device write address
94+
* @param[in] reg iic register address
95+
* @param[out] *buf pointer to a data buffer
96+
* @param[in] len length of the data buffer
9797
* @return status code
9898
* - 0 success
9999
* - 1 read failed
@@ -103,11 +103,11 @@ uint8_t iic_read(int fd, uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len);
103103

104104
/**
105105
* @brief iic bus read with 16 bits register address
106-
* @param[in] fd is the iic handle
107-
* @param[in] addr is the iic device write address
108-
* @param[in] reg is the iic register address
109-
* @param[out] *buf points to a data buffer
110-
* @param[in] len is the length of the data buffer
106+
* @param[in] fd iic handle
107+
* @param[in] addr iic device write address
108+
* @param[in] reg iic register address
109+
* @param[out] *buf pointer to a data buffer
110+
* @param[in] len length of the data buffer
111111
* @return status code
112112
* - 0 success
113113
* - 1 read failed
@@ -117,10 +117,10 @@ uint8_t iic_read_address16(int fd, uint8_t addr, uint16_t reg, uint8_t *buf, uin
117117

118118
/**
119119
* @brief iic bus write command
120-
* @param[in] fd is the iic handle
121-
* @param[in] addr is the iic device write address
122-
* @param[in] *buf points to a data buffer
123-
* @param[in] len is the length of the data buffer
120+
* @param[in] fd iic handle
121+
* @param[in] addr iic device write address
122+
* @param[in] *buf pointer to a data buffer
123+
* @param[in] len length of the data buffer
124124
* @return status code
125125
* - 0 success
126126
* - 1 write failed
@@ -130,11 +130,11 @@ uint8_t iic_write_cmd(int fd, uint8_t addr, uint8_t *buf, uint16_t len);
130130

131131
/**
132132
* @brief iic bus write
133-
* @param[in] fd is the iic handle
134-
* @param[in] addr is the iic device write address
135-
* @param[in] reg is the iic register address
136-
* @param[in] *buf points to a data buffer
137-
* @param[in] len is the length of the data buffer
133+
* @param[in] fd iic handle
134+
* @param[in] addr iic device write address
135+
* @param[in] reg iic register address
136+
* @param[in] *buf pointer to a data buffer
137+
* @param[in] len length of the data buffer
138138
* @return status code
139139
* - 0 success
140140
* - 1 write failed
@@ -144,11 +144,11 @@ uint8_t iic_write(int fd, uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
144144

145145
/**
146146
* @brief iic bus write with 16 bits register address
147-
* @param[in] fd is the iic handle
148-
* @param[in] addr is the iic device write address
149-
* @param[in] reg is the iic register address
150-
* @param[in] *buf points to a data buffer
151-
* @param[in] len is the length of the data buffer
147+
* @param[in] fd iic handle
148+
* @param[in] addr iic device write address
149+
* @param[in] reg iic register address
150+
* @param[in] *buf pointer to a data buffer
151+
* @param[in] len length of the data buffer
152152
* @return status code
153153
* - 0 success
154154
* - 1 write failed

project/raspberrypi4b/interface/inc/spi.h

+36-36
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ typedef enum
6767

6868
/**
6969
* @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
7474
* @return status code
7575
* - 0 success
7676
* - 1 init failed
@@ -80,7 +80,7 @@ uint8_t spi_init(char *name, int *fd, spi_mode_type_t mode, uint32_t freq);
8080

8181
/**
8282
* @brief spi bus deinit
83-
* @param[in] fd is the spi handle
83+
* @param[in] fd spi handle
8484
* @return status code
8585
* - 0 success
8686
* - 1 deinit failed
@@ -90,9 +90,9 @@ uint8_t spi_deinit(int fd);
9090

9191
/**
9292
* @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
9696
* @return status code
9797
* - 0 success
9898
* - 1 read failed
@@ -102,10 +102,10 @@ uint8_t spi_read_cmd(int fd, uint8_t *buf, uint16_t len);
102102

103103
/**
104104
* @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
109109
* @return status code
110110
* - 0 success
111111
* - 1 read failed
@@ -115,10 +115,10 @@ uint8_t spi_read(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
115115

116116
/**
117117
* @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
122122
* @return status code
123123
* - 0 success
124124
* - 1 read failed
@@ -128,9 +128,9 @@ uint8_t spi_read_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
128128

129129
/**
130130
* @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
134134
* @return status code
135135
* - 0 success
136136
* - 1 write failed
@@ -140,10 +140,10 @@ uint8_t spi_write_cmd(int fd, uint8_t *buf, uint16_t len);
140140

141141
/**
142142
* @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
147147
* @return status code
148148
* - 0 success
149149
* - 1 write failed
@@ -153,10 +153,10 @@ uint8_t spi_write(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
153153

154154
/**
155155
* @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
160160
* @return status code
161161
* - 0 success
162162
* - 1 write failed
@@ -166,11 +166,11 @@ uint8_t spi_write_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
166166

167167
/**
168168
* @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
174174
* @return status code
175175
* - 0 success
176176
* - 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
180180

181181
/**
182182
* @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
187187
* @return status code
188188
* - 0 success
189189
* - 1 transmit failed

project/raspberrypi4b/interface/src/iic.c

+31-31
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
/**
4444
* @brief iic bus init
45-
* @param[in] *name points to an iic device name buffer
46-
* @param[out] *fd points to an iic device handle buffer
45+
* @param[in] *name pointer to an iic device name buffer
46+
* @param[out] *fd pointer to an iic device handle buffer
4747
* @return status code
4848
* - 0 success
4949
* - 1 init failed
@@ -69,7 +69,7 @@ uint8_t iic_init(char *name, int *fd)
6969

7070
/**
7171
* @brief iic bus deinit
72-
* @param[in] fd is the iic handle
72+
* @param[in] fd iic handle
7373
* @return status code
7474
* - 0 success
7575
* - 1 deinit failed
@@ -92,10 +92,10 @@ uint8_t iic_deinit(int fd)
9292

9393
/**
9494
* @brief iic bus read command
95-
* @param[in] fd is the iic handle
96-
* @param[in] addr is the iic device write address
97-
* @param[out] *buf points to a data buffer
98-
* @param[in] len is the length of the data buffer
95+
* @param[in] fd iic handle
96+
* @param[in] addr iic device write address
97+
* @param[out] *buf pointer to a data buffer
98+
* @param[in] len length of the data buffer
9999
* @return status code
100100
* - 0 success
101101
* - 1 read failed
@@ -133,11 +133,11 @@ uint8_t iic_read_cmd(int fd, uint8_t addr, uint8_t *buf, uint16_t len)
133133

134134
/**
135135
* @brief iic bus read
136-
* @param[in] fd is the iic handle
137-
* @param[in] addr is the iic device write address
138-
* @param[in] reg is the iic register address
139-
* @param[out] *buf points to a data buffer
140-
* @param[in] len is the length of the data buffer
136+
* @param[in] fd iic handle
137+
* @param[in] addr iic device write address
138+
* @param[in] reg iic register address
139+
* @param[out] *buf pointer to a data buffer
140+
* @param[in] len length of the data buffer
141141
* @return status code
142142
* - 0 success
143143
* - 1 read failed
@@ -179,11 +179,11 @@ uint8_t iic_read(int fd, uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
179179

180180
/**
181181
* @brief iic bus read with 16 bits register address
182-
* @param[in] fd is the iic handle
183-
* @param[in] addr is the iic device write address
184-
* @param[in] reg is the iic register address
185-
* @param[out] *buf points to a data buffer
186-
* @param[in] len is the length of the data buffer
182+
* @param[in] fd iic handle
183+
* @param[in] addr iic device write address
184+
* @param[in] reg iic register address
185+
* @param[out] *buf pointer to a data buffer
186+
* @param[in] len length of the data buffer
187187
* @return status code
188188
* - 0 success
189189
* - 1 read failed
@@ -228,10 +228,10 @@ uint8_t iic_read_address16(int fd, uint8_t addr, uint16_t reg, uint8_t *buf, uin
228228

229229
/**
230230
* @brief iic bus write command
231-
* @param[in] fd is the iic handle
232-
* @param[in] addr is the iic device write address
233-
* @param[in] *buf points to a data buffer
234-
* @param[in] len is the length of the data buffer
231+
* @param[in] fd iic handle
232+
* @param[in] addr iic device write address
233+
* @param[in] *buf pointer to a data buffer
234+
* @param[in] len length of the data buffer
235235
* @return status code
236236
* - 0 success
237237
* - 1 write failed
@@ -269,11 +269,11 @@ uint8_t iic_write_cmd(int fd, uint8_t addr, uint8_t *buf, uint16_t len)
269269

270270
/**
271271
* @brief iic bus write
272-
* @param[in] fd is the iic handle
273-
* @param[in] addr is the iic device write address
274-
* @param[in] reg is the iic register address
275-
* @param[in] *buf points to a data buffer
276-
* @param[in] len is the length of the data buffer
272+
* @param[in] fd iic handle
273+
* @param[in] addr iic device write address
274+
* @param[in] reg iic register address
275+
* @param[in] *buf pointer to a data buffer
276+
* @param[in] len length of the data buffer
277277
* @return status code
278278
* - 0 success
279279
* - 1 write failed
@@ -317,11 +317,11 @@ uint8_t iic_write(int fd, uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
317317

318318
/**
319319
* @brief iic bus write with 16 bits register address
320-
* @param[in] fd is the iic handle
321-
* @param[in] addr is the iic device write address
322-
* @param[in] reg is the iic register address
323-
* @param[in] *buf points to a data buffer
324-
* @param[in] len is the length of the data buffer
320+
* @param[in] fd iic handle
321+
* @param[in] addr iic device write address
322+
* @param[in] reg iic register address
323+
* @param[in] *buf pointer to a data buffer
324+
* @param[in] len length of the data buffer
325325
* @return status code
326326
* - 0 success
327327
* - 1 write failed

0 commit comments

Comments
 (0)