Skip to content

Commit 1a3b6e5

Browse files
Teppo JärvelinAri Parkkila
authored andcommitted
Doxygen update: removed documentation from inherited classes as INHERTIC_DOCS is enabled in doxygen config. Reduces copy-paste and eases maintenance.
1 parent e99c18c commit 1a3b6e5

20 files changed

+27
-773
lines changed

features/cellular/framework/API/CellularNetwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class CellularNetwork : public NetworkInterface
374374
*/
375375
virtual int get_3gpp_error() = 0;
376376

377-
/** Get the operator params
377+
/** Get the operator parameters.
378378
*
379379
* @param format format of the operator field
380380
* @param operator_params applicable operator param fields filled

features/cellular/framework/AT/AT_CellularDevice.h

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ class AT_CellularDevice : public CellularDevice
4646
protected:
4747
ATHandler *_atHandlers;
4848

49-
/** Get the athandler. If the given fh is already used with existing athandler, instance to that athander is returned.
50-
* Otherwise new athander is created.
51-
*
52-
* @param fh FileHandle to be used with the ATHandler
53-
* @return pointer to ATHandler
54-
*/
5549
ATHandler *get_at_handler(FileHandle *fh);
5650

5751
/** Releases the given at_handler. If last reference to at_hander then it's deleted.
@@ -61,82 +55,32 @@ class AT_CellularDevice : public CellularDevice
6155
void release_at_handler(ATHandler* at_handler);
6256

6357
public: // CellularDevice
64-
/** Create new CellularNetwork interface.
65-
*
66-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
67-
* @return New instance of interface CellularNetwork.
68-
*/
6958
virtual CellularNetwork *open_network(FileHandle *fh);
7059

71-
/** Create new CellularSMS interface.
72-
*
73-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
74-
* @return New instance of interface CellularSMS.
75-
*/
7660
virtual CellularSMS *open_sms(FileHandle *fh);
7761

78-
/** Create new CellularPower interface.
79-
*
80-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
81-
* @return New instance of interface CellularPower.
82-
*/
8362
virtual CellularPower *open_power(FileHandle *fh);
8463

85-
/** Create new CellularSIM interface.
86-
*
87-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
88-
* @return New instance of interface CellularSIM.
89-
*/
9064
virtual CellularSIM *open_sim(FileHandle *fh);
9165

92-
/** Create new CellularMultiplexer interface.
93-
*
94-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
95-
* @return New instance of interface CellularMultiplexer.
96-
*/
9766
virtual CellularMultiplexer *open_multiplexer(FileHandle *fh);
9867

99-
/** Create new CellularInformation interface.
100-
*
101-
* @param fh filehandle used in communication to modem. Can be for example UART handle.
102-
* @return New instance of interface CellularInformation.
103-
*/
10468
virtual CellularInformation *open_information(FileHandle *fh);
10569

106-
/** Closes the opened CellularNetwork by deleting the CellularNetwork instance.
107-
*/
10870
virtual void close_network();
10971

110-
/** Closes the opened CellularNetwork by deleting the CellularSMS instance.
111-
*/
11272
virtual void close_sms();
11373

114-
/** Closes the opened CellularNetwork by deleting the CellularPower instance.
115-
*/
11674
virtual void close_power();
11775

118-
/** Closes the opened CellularNetwork by deleting the CellularSIM instance.
119-
*/
12076
virtual void close_sim();
12177

122-
/** Closes the opened CellularNetwork by deleting the CellularMultiplexer instance.
123-
*/
12478
virtual void close_multiplexer();
12579

126-
/** Closes the opened CellularNetwork by deleting the CellularInformation instance.
127-
*/
12880
virtual void close_information();
12981

130-
/** Set the default response timeout.
131-
*
132-
* @param timeout milliseconds to wait response from modem
133-
*/
13482
virtual void set_timeout(int timeout);
13583

136-
/** Get network stack.
137-
*
138-
* @return network stack
139-
*/
14084
virtual NetworkStack *get_stack();
14185

14286
protected:

features/cellular/framework/AT/AT_CellularInformation.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,10 @@ class AT_CellularInformation : public CellularInformation, public AT_CellularBas
3535
virtual ~AT_CellularInformation();
3636

3737
public:
38-
/** Request manufacturer identification of cellular device
39-
*
40-
* @param buf manufacturer identification
41-
* @param buf_size max length of manufacturer identification is 2048 characters
42-
* @return on success read character count, on failure negative error code
43-
*/
4438
virtual nsapi_size_or_error_t get_manufacturer(char *buf, size_t buf_size);
4539

46-
/** Request model identification of cellular device
47-
*
48-
* @param buf model identification
49-
* @param buf_size max length of model identification is 2048 characters
50-
* @return on success read character count, on failure negative error code
51-
*/
5240
virtual nsapi_size_or_error_t get_model(char *buf, size_t buf_size);
5341

54-
/** Request revision identification of cellular device
55-
*
56-
* @param buf revision identification
57-
* @param buf_size max length of revision identification is 2048 characters
58-
* @return on success read character count, on failure negative error code
59-
*/
6042
virtual nsapi_size_or_error_t get_revision(char *buf, size_t buf_size);
6143

6244
protected:

features/cellular/framework/AT/AT_CellularMultiplexer.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ class AT_CellularMultiplexer : public CellularMultiplexer, public AT_CellularBas
3535
virtual ~AT_CellularMultiplexer();
3636

3737
public:
38-
/** Starts modem multiplexer mode specified by 3GPP TS 27.010.
39-
*
40-
* @return zero on success, negative error code on failure
41-
*/
4238
virtual nsapi_error_t multiplexer_mode_start();
4339
};
4440

features/cellular/framework/AT/AT_CellularNetwork.h

Lines changed: 4 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -43,225 +43,68 @@ class AT_CellularNetwork : public CellularNetwork, public AT_CellularBase
4343

4444
public: // NetworkInterface
4545

46-
/** Set the cellular network APN and credentials
47-
*
48-
* @param apn Optional name of the network to connect to
49-
* @param username Optional username for the APN
50-
* @param password Optional password fot the APN
51-
* @return 0 on success, negative error code on failure
52-
*/
5346
virtual nsapi_error_t set_credentials(const char *apn,
5447
const char *username = 0, const char *password = 0);
5548

56-
/** Set the cellular network APN and credentials
57-
*
58-
* @param apn Name of the network to connect to
59-
* @param type Authentication type to use
60-
* @param username Optional username for the APN
61-
* @param password Optional password fot the APN
62-
* @return 0 on success, negative error code on failure
63-
*/
6449
virtual nsapi_error_t set_credentials(const char *apn, AuthenticationType type,
6550
const char *username = 0, const char *password = 0);
6651

67-
/** Start the interface. Attempts to connect to a cellular network.
68-
*
69-
* @param apn Optional name of the network to connect to
70-
* @param username Optional username for your APN
71-
* @param password Optional password for your APN
72-
* @return 0 on success, negative error code on failure
73-
*/
7452
virtual nsapi_error_t connect(const char *apn,
7553
const char *username = 0, const char *password = 0);
7654

77-
/** Start the interface. Attempts to connect to a cellular network.
78-
*
79-
* @return 0 on success, negative error code on failure
80-
*/
8155
virtual nsapi_error_t connect();
8256

83-
/** Stop the interface
84-
*
85-
* @return 0 on success, negative error code on failure
86-
*/
8757
virtual nsapi_error_t disconnect();
8858

8959
protected:
90-
/** Provide access to the NetworkStack object
91-
*
92-
* @return The underlying NetworkStack object
93-
*/
9460
virtual NetworkStack *get_stack();
9561

9662
public: // CellularNetwork
97-
/** Request registering to network.
98-
*
99-
* @param plmn format is in numeric format or 0 for automatic network registration
100-
* @return zero on success
101-
*/
10263
virtual nsapi_error_t set_registration(const char *plmn = 0);
10364

104-
/**
105-
* Gets the network registration status.
106-
* @param type see RegistrationType values
107-
* @param status see RegistrationStatus values
108-
* @return zero on success
109-
*/
11065
virtual nsapi_error_t get_registration_status(RegistrationType type, RegistrationStatus &status);
11166

112-
/** Request attach to network.
113-
*
114-
* @param timeout milliseconds to wait for attach response
115-
* @return zero on success
116-
*/
11767
virtual nsapi_error_t set_attach(int timeout = 10*1000);
11868

119-
/** Request attach status from network.
120-
*
121-
* @param status see AttachStatus values
122-
* @return zero on success
123-
*/
12469
virtual nsapi_error_t get_attach(AttachStatus &status);
12570

126-
/** Get APN rate control.
127-
*
128-
* @remark optional params are not updated if not received from network, so use good defaults
129-
*
130-
* @param reports Additional exception reports at maximum rate reached are allowed to be sent [optional]
131-
* @param time_unit Uplink time unit with values 0=unrestricted, 1=minute, 2=hour, 3=day, 4=week [optional]
132-
* @param uplink_rate Maximum number of messages per timeUnit [optional]
133-
* @return zero on success
134-
*/
13571
virtual nsapi_error_t get_rate_control(CellularNetwork::RateControlExceptionReports &reports,
13672
CellularNetwork::RateControlUplinkTimeUnit &time_unit, int &uplink_rate);
13773

138-
/** Get backoff timer value
139-
*
140-
* @param backoff_time Backoff timer value associated with PDP APN in seconds
141-
* @return zero on success
142-
*/
14374
virtual nsapi_error_t get_backoff_time(int &backoff_time);
14475

145-
/** Get notified if the connection gets lost
146-
*
147-
* @param status_cb user defined callback
148-
*/
14976
virtual void attach(Callback<void(nsapi_event_t, intptr_t)> status_cb);
15077

151-
/** Get the connection status
152-
*
153-
* @return The connection status according to ConnectionStatusType
154-
*/
15578
virtual nsapi_connection_status_t get_connection_status() const;
15679

157-
/** Set blocking status of connect() which by default should be blocking
158-
*
159-
* @param blocking true if connect is blocking
160-
* @return 0 on success, negative error code on failure
161-
*/
16280
virtual nsapi_error_t set_blocking(bool blocking);
16381

164-
/** Get the local IP address
165-
*
166-
* @return Null-terminated representation of the local IP address
167-
* or null if no IP address has been received
168-
*/
16982
virtual const char *get_ip_address();
17083

171-
/** Sets radio access technology.
172-
*
173-
* @param op_rat Radio access technology
174-
* @return zero on success
175-
*/
17684
virtual nsapi_error_t set_access_technology(operator_t::RadioAccessTechnology op_rat);
17785

178-
/** Scans for operators module can reach.
179-
*
180-
* @param operators Container of reachable operators and their access technologies
181-
* @param ops_count Number of found operators
182-
* @return zero on success
183-
*/
18486
virtual nsapi_error_t scan_plmn(operList_t &operators, int &ops_count);
18587

186-
/** Set CIoT optimizations.
187-
*
188-
* @param supported_opt Supported CIoT EPS optimizations.
189-
* @param preferred_opt Preferred CIoT EPS optimizations.
190-
* @return zero on success
191-
*/
19288
virtual nsapi_error_t set_ciot_optimization_config(Supported_UE_Opt supported_opt,
19389
Preferred_UE_Opt preferred_opt);
19490

195-
/** Get CIoT optimizations.
196-
*
197-
* @param supported_opt Supported CIoT EPS optimizations.
198-
* @param preferred_opt Preferred CIoT EPS optimizations.
199-
* @return zero on success
200-
*/
20191
virtual nsapi_error_t get_ciot_optimization_config(Supported_UE_Opt& supported_opt,
20292
Preferred_UE_Opt& preferred_opt);
20393

94+
virtual nsapi_error_t set_stack_type(nsapi_ip_stack_t stack_type);
20495

205-
/** Set the pdn type to be used
206-
*
207-
* @param stack_type the stack type to be used.
208-
* @return NSAPI_ERROR_OK on success
209-
*/
210-
virtual nsapi_error_t set_stack_type(nsapi_ip_stack_t stack_type);
96+
virtual nsapi_ip_stack_t get_stack_type();
21197

212-
/** Get the pdn type in use
213-
*
214-
* @return stack type
215-
*/
216-
virtual nsapi_ip_stack_t get_stack_type();
98+
virtual nsapi_error_t get_pdpcontext_params(pdpContextList_t& params_list);
21799

218-
/** Get the relevant information for an active non secondary PDP context.
219-
*
220-
* @remark optional params are not updated if not received from network.
221-
*
222-
* @param params_list reference to linked list which is filled on successful call
223-
* @return 0 on success, negative error code on failure
224-
*/
225-
virtual nsapi_error_t get_pdpcontext_params(pdpContextList_t& params_list);
226-
227-
/** Get extended signal quality parameters.
228-
*
229-
* @param rxlev signal strength level
230-
* @param ber bit error rate
231-
* @param rscp signal code power
232-
* @param ecno ratio of the received energy per PN chip to the total received power spectral density
233-
* @param rsrq signal received quality
234-
* @param rsrp signal received power
235-
* @return NSAPI_ERROR_OK on success, negative error code on failure
236-
*/
237100
virtual nsapi_error_t get_extended_signal_quality(int &rxlev, int &ber, int &rscp, int &ecno, int &rsrq, int &rsrp);
238101

239-
/** Get signal quality parameters.
240-
*
241-
* @param rssi signal strength level
242-
* @param ber bit error rate
243-
* @return NSAPI_ERROR_OK on success, negative error code on failure
244-
*/
245102
virtual nsapi_error_t get_signal_quality(int &rssi, int &ber);
246103

247-
/** Get cell id.
248-
*
249-
* @param cell_id cell id
250-
* @return NSAPI_ERROR_OK on success, negative error code on failure
251-
*/
252104
virtual nsapi_error_t get_cell_id(int &cell_id);
253105

254-
/** Get the last 3GPP error code
255-
* @return see 3GPP TS 27.007 error codes
256-
*/
257106
virtual int get_3gpp_error();
258107

259-
/** Get the operator params
260-
*
261-
* @param format format of the operator field
262-
* @param operator_params applicable operator param fields filled
263-
* @return NSAPI_ERROR_OK on success, negative error code on failure
264-
*/
265108
virtual nsapi_error_t get_operator_params(int &format, operator_t &operator_params);
266109

267110
protected:
@@ -279,7 +122,7 @@ class AT_CellularNetwork : public CellularNetwork, public AT_CellularBase
279122
*/
280123
virtual bool has_registration(RegistrationType reg_type);
281124

282-
/** Sets access technology to be scanned.
125+
/** Sets access technology to be scanned. Modem specific implementation.
283126
*
284127
* @param op_rat Access technology
285128
*

0 commit comments

Comments
 (0)