Merge pull request #8578 from cmonr/rollup

Rollup PR: Samll docs changes
pull/8588/head
Martin Kojtal 2018-10-30 10:03:01 +01:00 committed by GitHub
commit 27c0affef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 46 additions and 46 deletions

View File

@ -219,8 +219,8 @@ protected:
pwmout_t _pwm;
bool _deep_sleep_locked;
};
#endif
};
} // namespace mbed

View File

@ -27,7 +27,7 @@ public:
/** Get the default cellular interface.
*
* This is provided as a weak method so applications can override.
* Default behaviour is to get the target's default interface, if
* Default behavior is to get the target's default interface, if
* any.
*
* @return pointer to interface, if any.
@ -36,7 +36,7 @@ public:
/** Set the cellular network credentials.
*
* Please check documentation of connect() for default behaviour of APN settings.
* Please check documentation of connect() for default behavior of APN settings.
*
* @param apn Access point name.
* @param uname Username (optional).

View File

@ -26,7 +26,7 @@
/**
* This interface should be used to abstract low level access to networking hardware
* All operations receive a `void *` hw pointer which an emac device provides when
* All operations receive a `void *` hardware pointer which an EMAC device provides when
* it is registered with a stack.
*/
class EMAC {
@ -40,7 +40,7 @@ public:
static EMAC &get_default_instance();
/**
* Callback to be register with Emac interface and to be called for received packets
* Callback to be register with EMAC interface and to be called for received packets
*
* @param buf Received data
*/
@ -48,7 +48,7 @@ public:
typedef mbed::Callback<void (emac_mem_buf_t *buf)> emac_link_input_cb_t;
/**
* Callback to be register with Emac interface and to be called for link status changes
* Callback to be register with EMAC interface and to be called for link status changes
*
* @param up Link status
*/
@ -65,7 +65,7 @@ public:
/**
* Gets memory buffer alignment preference
*
* Gets preferred memory buffer alignment of the Emac device. IP stack may or may not
* Gets preferred memory buffer alignment of the EMAC device. IP stack may or may not
* align link out memory buffer chains using the alignment.
*
* @return Memory alignment requirement in bytes
@ -107,7 +107,7 @@ public:
* Provided address has to be of correct size, see @a get_hwaddr_size
*
* Called to set the MAC address to actually use - if @a get_hwaddr is provided
* the stack would normally use that, but it could be overridden, eg for test
* the stack would normally use that, but it could be overridden, for example for test
* purposes.
*
* @param addr Address to be set
@ -179,7 +179,7 @@ public:
/** These need to be defined by targets wishing to provide an Ethernet driver using EMAC interface. It will
* be used by the EMACInterface class's default constructor to initialise the networking subsystem.
* be used by the EMACInterface class's default constructor to initialize the networking subsystem.
*/
//extern const emac_interface_ops_t mbed_emac_eth_ops_default;
//extern void *mbed_emac_eth_hw_default;

View File

@ -32,7 +32,7 @@
* Drivers derived from EMACInterface should be constructed so that their
* EMAC is functional without the need to call `connect()`. For example
* a Wi-Fi driver should permit `WiFi::get_emac().power_up()` as soon as
* the credentials have been set. This is necessary to support specialised
* the credentials have been set. This is necessary to support specialized
* applications such as 6LoWPAN mesh border routers.
*/
class EMACInterface : public virtual NetworkInterface {
@ -99,21 +99,21 @@ public:
/** Get the local IP address
*
* @return Null-terminated representation of the local IP address
* or null if no IP address has been recieved
* or null if no IP address has been received
*/
virtual const char *get_ip_address();
/** Get the local network mask
*
* @return Null-terminated representation of the local network mask
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_netmask();
/** Get the local gateways
*
* @return Null-terminated representation of the local gateway
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_gateway();

View File

@ -38,7 +38,7 @@ public:
/** Get the default Ethernet interface.
*
* This is provided as a weak method so applications can override.
* Default behaviour is to get the target's default interface, if
* Default behavior is to get the target's default interface, if
* any.
*
* @return Pointer to interface, if one exists.

View File

@ -37,7 +37,7 @@ public:
/** Get the default Mesh interface.
*
* This is provided as a weak method so applications can override.
* Default behaviour is to get the target's default interface, if
* Default behavior is to get the target's default interface, if
* any.
*
* @return pointer to interface, if any.

View File

@ -49,7 +49,7 @@ public:
* wifiInterface(), meshInterface(), cellularBase(), emacInterface() and checking
* for NULL pointers.
*
* The default behaviour is to return the default interface for the
* The default behavior is to return the default interface for the
* interface type specified by target.network-default-interface-type. Targets
* should set this in their targets.json to guide default selection,
* and applications may override.
@ -306,7 +306,7 @@ protected:
* need to override in simple cases.
*
* If a target has more elaborate interface selection, it can completely
* override this behaviour by implementing
* override this behavior by implementing
* NetworkInterface::get_target_default_instance() themselves, either
* unconditionally, or for a specific network-default-interface-type setting
*

View File

@ -50,7 +50,7 @@ public:
* Also connectionless protocols use the connected address to filter
* incoming packets for recv() and recvfrom() calls.
*
* To reset the peer address, zero initialised(default constructor) SocketAddress
* To reset the peer address, zero initialized(default constructor) SocketAddress
* object have to be in the address parameter.
*
* @param address The SocketAddress of the remote peer
@ -234,9 +234,9 @@ public:
* The server socket must be bound and set to listen for connections.
* On a new connection, returns connected network socket which user is expected to call close()
* and that deallocates the resources. Referencing a returned pointer after a close()
* call is not allowed and leads to undefined behaviour.
* call is not allowed and leads to undefined behavior.
*
* By default, accept blocks until incomming connection occurs. If socket is set to
* By default, accept blocks until incoming connection occurs. If socket is set to
* non-blocking or times out, error is set to NSAPI_ERROR_WOULD_BLOCK.
*
* @param error pointer to storage of the error value or NULL

View File

@ -158,9 +158,9 @@ public:
* The server socket must be bound and set to listen for connections.
* On a new connection, returns connected network socket which user is expected to call close()
* and that deallocates the resources. Referencing a returned pointer after a close()
* call is not allowed and leads to undefined behaviour.
* call is not allowed and leads to undefined behavior.
*
* By default, accept blocks until incomming connection occurs. If socket is set to
* By default, accept blocks until incoming connection occurs. If socket is set to
* non-blocking or times out, error is set to NSAPI_ERROR_WOULD_BLOCK.
*
* @param error pointer to storage of the error value or NULL

View File

@ -174,7 +174,7 @@ protected:
/** Initiates TLS Handshake
*
* Initiates a TLS hanshake to a remote speer
* Initiates a TLS handshake to a remote peer
* Underlying transport socket should already be connected
*
* Root CA certification must be set by set_ssl_ca_pem() before

View File

@ -31,7 +31,7 @@ public:
/** Get the default Wi-Fi interface.
*
* This is provided as a weak method so applications can override.
* Default behaviour is to get the target's default interface, if
* Default behavior is to get the target's default interface, if
* any.
*
* @return pointer to interface, if any.

View File

@ -127,7 +127,7 @@ public:
*
* @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
*
* Please check documentation of connect() for default behaviour of APN settings.
* Please check documentation of connect() for default behavior of APN settings.
*
* @param apn Access point name
* @param uname optionally, Username
@ -176,7 +176,7 @@ public:
* by the cellular modem over PPP interface.
*
* If the SIM requires a PIN, and it is not set/invalid, NSAPI_ERROR_AUTH_ERROR is returned.
* For APN setup, default behaviour is to use 'internet' as APN string and assuming no authentication
* For APN setup, default behavior is to use 'internet' as APN string and assuming no authentication
* is required, i.e., username and password are not set. Optionally, a database lookup can be requested
* by turning on the APN database lookup feature. In order to do so, add 'MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP'
* in your mbed_app.json. APN database is by no means exhaustive. It contains a short list of some public

View File

@ -17,9 +17,9 @@
#ifndef ONBOARD_MODEM_API_H_
#define ONBOARD_MODEM_API_H_
/** onboard_modem_api is a standardizing API for Modem type devices under mbed-os.
/** onboard_modem_api is a standardizing API for Modem type devices under Mbed OS.
* It provides a simple hardware abstraction layer on top of the modem drivers
* written for mbed-os.
* written for Mbed OS.
*
* It is required from the engineers porting any modem type device (e.g., Cellular)
* to provide an implementation of this API in their respective target folder as well as

View File

@ -97,7 +97,7 @@ typedef signed int nsapi_error_t;
*/
typedef unsigned int nsapi_size_t;
/** Type used to represent either a size or error pased through sockets
/** Type used to represent either a size or error passed through sockets
*
* A valid nsapi_size_or_error_t is either a non-negative size or a
* negative error code from the nsapi_error_t

View File

@ -36,7 +36,7 @@ namespace mbed {
/** Class FileHandle
*
* An abstract interface that represents operations on a file-like
* object. The core functions are read, write, and seek, but only
* object. The core functions are read, write and seek, but only
* a subset of these operations can be provided.
*
* @note to create a file, @see File
@ -50,7 +50,7 @@ public:
*
* Devices acting as FileHandles should follow POSIX semantics:
*
* * if no data is available, and non-blocking set return -EAGAIN
* * if no data is available, and nonblocking set, return -EAGAIN
* * if no data is available, and blocking set, wait until some data is available
* * If any data is available, call returns immediately
*
@ -65,8 +65,8 @@ public:
* Devices acting as FileHandles should follow POSIX semantics:
*
* * if blocking, block until all data is written
* * if no data can be written, and non-blocking set, return -EAGAIN
* * if some data can be written, and non-blocking set, write partial
* * if no data can be written, and nonblocking set, return -EAGAIN
* * if some data can be written, and nonblocking set, write partial
*
* @param buffer The buffer to write from
* @param size The number of bytes to write
@ -181,11 +181,11 @@ public:
return size();
}
/** Set blocking or non-blocking mode of the file operation like read/write.
* Definition depends upon the subclass implementing FileHandle.
/** Set blocking or nonblocking mode of the file operation like read/write.
* Definition depends on the subclass implementing FileHandle.
* The default is blocking.
*
* @param blocking true for blocking mode, false for non-blocking mode.
* @param blocking true for blocking mode, false for nonblocking mode.
*
* @return 0 on success
* @return Negative error code on failure
@ -195,9 +195,9 @@ public:
return blocking ? 0 : -ENOTTY;
}
/** Check current blocking or non-blocking mode for file operations.
/** Check current blocking or nonblocking mode for file operations.
*
* @return true for blocking mode, false for non-blocking mode.
* @return true for blocking mode, false for nonblocking mode.
*/
virtual bool is_blocking() const
{
@ -205,9 +205,9 @@ public:
}
/** Check for poll event flags
* The input parameter can be used or ignored - the could always return all events,
* or could check just the events listed in events.
* Call is non-blocking - returns instantaneous state of events.
* You can use or ignore the input parameter. You can return all events
* or check just the events listed in events.
* Call is nonblocking - returns instantaneous state of events.
* Whenever an event occurs, the derived class should call the sigio() callback).
*
* @param events bitmask of poll events we're interested in - POLLIN/POLLOUT etc.
@ -220,7 +220,7 @@ public:
return POLLIN | POLLOUT;
}
/** Definition depends upon the subclass implementing FileHandle.
/** Definition depends on the subclass implementing FileHandle.
* For example, if the FileHandle is of type Stream, writable() could return
* true when there is ample buffer space available for write() calls.
*
@ -231,7 +231,7 @@ public:
return poll(POLLOUT) & POLLOUT;
}
/** Definition depends upon the subclass implementing FileHandle.
/** Definition depends on the subclass implementing FileHandle.
* For example, if the FileHandle is of type Stream, readable() could return
* true when there is something available to read.
*
@ -250,11 +250,11 @@ public:
* The callback may be called in an interrupt context and should not
* perform expensive operations.
*
* Note! This is not intended as an attach-like asynchronous api, but rather
* as a building block for constructing such functionality.
* Note! This is not intended as an attach-like asynchronous API, but rather
* as a building block for constructing such functionality.
*
* The exact timing of when the registered function
* is called is not guaranteed and susceptible to change. It should be used
* is called is not guaranteed and is susceptible to change. It should be used
* as a cue to make read/write/poll calls to find the current state.
*
* @param func Function to call on state change