Skip to content

Commit 6478e88

Browse files
author
Deepika
committed
Fix doxygen warnings in 'drivers'
1 parent 6ee4c7e commit 6478e88

File tree

6 files changed

+54
-11
lines changed

6 files changed

+54
-11
lines changed

drivers/CAN.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class CANMessage : public CAN_Message {
4646
}
4747

4848
/** Creates CAN message with specific content.
49+
*
50+
* @param _id Message ID
51+
* @param _data Mesaage Data
52+
* @param _len Message Data length
53+
* @param _type Type of Data: Use enum CANType for valid parameter values
54+
* @param _format Data Format: Use enum CANFormat for valid parameter values
4955
*/
5056
CANMessage(int _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard) {
5157
len = _len & 0xF;
@@ -56,6 +62,9 @@ class CANMessage : public CAN_Message {
5662
}
5763

5864
/** Creates CAN remote message.
65+
*
66+
* @param _id Message ID
67+
* @param _format Data Format: Use enum CANType for valid parameter values
5968
*/
6069
CANMessage(int _id, CANFormat _format = CANStandard) {
6170
len = 0;
@@ -197,11 +206,15 @@ class CAN {
197206
*/
198207
int filter(unsigned int id, unsigned int mask, CANFormat format = CANAny, int handle = 0);
199208

200-
/** Returns number of read errors to detect read overflow errors.
209+
/** Detects read errors - Used to detect read overflow errors.
210+
*
211+
* @returns number of read errors
201212
*/
202213
unsigned char rderror();
203214

204-
/** Returns number of write errors to detect write overflow errors.
215+
/** Detects write errors - Used to detect write overflow errors.
216+
*
217+
* @returns number of write errors
205218
*/
206219
unsigned char tderror();
207220

drivers/Ethernet.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,16 @@ class Ethernet {
111111

112112
/** Read from an recevied ethernet packet.
113113
*
114-
* After receive returnd a number bigger than 0it is
114+
* After receive returned a number bigger than 0 it is
115115
* possible to read bytes from this packet.
116-
* Read will write up to size bytes into data.
117116
*
118-
* It is possible to use read multible times.
117+
* @param data Pointer to data packet
118+
* @param size Size of data to be read.
119+
* @returns The number of byte read.
120+
*
121+
* @note It is possible to use read multiple times.
119122
* Each time read will start reading after the last read byte before.
120123
*
121-
* @returns
122-
* The number of byte read.
123124
*/
124125
int read(char *data, int size);
125126

drivers/InterruptManager.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ namespace mbed {
5555
*/
5656
class InterruptManager {
5757
public:
58-
/** Return the only instance of this class
58+
/** Get the instance of InterruptManager Class
59+
*
60+
* @return the only instance of this class
5961
*/
6062
static InterruptManager* get();
6163

drivers/Timer.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,20 @@ class Timer {
6767
void reset();
6868

6969
/** Get the time passed in seconds
70+
*
71+
* @returns Time passed in seconds
7072
*/
7173
float read();
7274

73-
/** Get the time passed in mili-seconds
75+
/** Get the time passed in milli-seconds
76+
*
77+
* @returns Time passed in milli seconds
7478
*/
7579
int read_ms();
7680

7781
/** Get the time passed in micro-seconds
82+
*
83+
* @returns Time passed in micro seconds
7884
*/
7985
int read_us();
8086

drivers/TimerEvent.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class TimerEvent {
3333
TimerEvent(const ticker_data_t *data);
3434

3535
/** The handler registered with the underlying timer interrupt
36+
*
37+
* @param id Timer Event ID
3638
*/
3739
static void irq(uint32_t id);
3840

hal/can_helper.h

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,44 @@
2525
extern "C" {
2626
#endif
2727

28+
/**
29+
*
30+
* \enum CANFormat
31+
*
32+
* \brief Values that represent CAN Format
33+
**/
2834
enum CANFormat {
2935
CANStandard = 0,
3036
CANExtended = 1,
3137
CANAny = 2
3238
};
3339
typedef enum CANFormat CANFormat;
3440

41+
/**
42+
*
43+
* \enum CANType
44+
*
45+
* \brief Values that represent CAN Type
46+
**/
3547
enum CANType {
3648
CANData = 0,
3749
CANRemote = 1
3850
};
3951
typedef enum CANType CANType;
4052

53+
/**
54+
*
55+
* \struct CAN_Message
56+
*
57+
* \brief Holder for single CAN message.
58+
*
59+
**/
4160
struct CAN_Message {
4261
unsigned int id; // 29 bit identifier
4362
unsigned char data[8]; // Data field
4463
unsigned char len; // Length of data field in bytes
45-
CANFormat format; // 0 - STANDARD, 1- EXTENDED IDENTIFIER
46-
CANType type; // 0 - DATA FRAME, 1 - REMOTE FRAME
64+
CANFormat format; // Format ::CANFormat
65+
CANType type; // Type ::CANType
4766
};
4867
typedef struct CAN_Message CAN_Message;
4968

0 commit comments

Comments
 (0)