Skip to content

Commit a2123f8

Browse files
authored
Merge pull request #32 from libdriver/dev
fix: fix doc errors
2 parents 6dff36b + 8b018bd commit a2123f8

File tree

23 files changed

+334
-328
lines changed

23 files changed

+334
-328
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.0.8 (2025-03-15)
2+
3+
## Bug Fixes
4+
5+
- fix doc errors
6+
17
## 2.0.7 (2025-01-05)
28

39
## Bug Fixes

project/raspberrypi4b/interface/inc/iic.h

Lines changed: 31 additions & 31 deletions
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/shell.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ uint8_t shell_init(void);
8989

9090
/**
9191
* @brief shell register function
92-
* @param[in] *name points to a name buffer
93-
* @param[in] *fuc points to a function address
92+
* @param[in] *name pointer to a name buffer
93+
* @param[in] *fuc pointer to a function address
9494
* @return status code
9595
* - 0 success
9696
* - 1 buffer is full
@@ -100,8 +100,8 @@ uint8_t shell_register(char *name, uint8_t (*fuc)(uint8_t argc, char **argv));
100100

101101
/**
102102
* @brief shell parse command
103-
* @param[in] *buf points to a buffer address
104-
* @param[in] len is the buffer length
103+
* @param[in] *buf pointer to a buffer address
104+
* @param[in] len buffer length
105105
* @return status code
106106
* - 0 success
107107
* - 1 run failed

project/raspberrypi4b/interface/inc/spi.h

Lines changed: 36 additions & 36 deletions
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/inc/wire.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ uint8_t wire_deinit(void);
7070

7171
/**
7272
* @brief wire bus read data
73-
* @param[out] *value points to a data buffer
73+
* @param[out] *value pointer to a data buffer
7474
* @return status code
7575
* - 0 success
7676
* - 1 read failed
@@ -80,7 +80,7 @@ uint8_t wire_read(uint8_t *value);
8080

8181
/**
8282
* @brief wire bus write data
83-
* @param[in] value is the write data
83+
* @param[in] value write data
8484
* @return status code
8585
* - 0 success
8686
* - 1 write failed
@@ -107,7 +107,7 @@ uint8_t wire_clock_deinit(void);
107107

108108
/**
109109
* @brief wire bus write data
110-
* @param[in] value is the write data
110+
* @param[in] value write data
111111
* @return status code
112112
* - 0 success
113113
* - 1 write failed

0 commit comments

Comments
 (0)