Public Member Functions | |
ATHandler & | get_at_handler () |
Getter for at handler. More... | |
device_err_t | get_device_error () const |
Gets the device error that happened when using AT commands/responses. More... | |
Static Public Member Functions | |
static void | set_cellular_properties (const intptr_t *property_array) |
Cellular module need to define an array of cellular properties which defines module supported property values. More... | |
static intptr_t | get_property (CellularProperty key) |
Get value for the given key. More... | |
Protected Member Functions | |
virtual nsapi_size_or_error_t | send (const void *cpdata, nsapi_size_t cpdata_length) |
Send data over cellular control plane. More... | |
virtual nsapi_size_or_error_t | recv (void *cpdata, nsapi_size_t cpdata_length) |
Receive data over cellular control plane. More... | |
virtual void | data_received () |
Receives data from the control plane PDP context. More... | |
virtual void | attach (void(*callback)(void *), void *data) |
Register a callback on state change of the socket. More... | |
Definition at line 7 of file AT_ControlPlane_netif.h.
|
protectedvirtual |
Register a callback on state change of the socket.
The specified callback will be called on state changes such as when the socket can recv/send successfully and on when an error occurs. The callback may also be called spuriously without reason.
The callback may be called in an interrupt context and should not perform expensive operations such as recv/send calls.
callback | Function to call on state change |
data | Argument to pass to callback |
Implements ControlPlane_netif.
|
protectedvirtual |
Receives data from the control plane PDP context.
This function is called by cellular PDP context when data is received from network. It will invoke the callback set by the above attach.
Implements ControlPlane_netif.
|
inherited |
|
inherited |
Gets the device error that happened when using AT commands/responses.
This is at error returned by the device. Returned CME/CMS errors can be found from 3gpp documents 27007 and 27005.
|
staticinherited |
Get value for the given key.
key | key for value to be fetched |
|
protectedvirtual |
Receive data over cellular control plane.
cpdata | Destination buffer for data received from control plane connection |
cpdata_length | Length of data in bytes |
Implements ControlPlane_netif.
|
protectedvirtual |
Send data over cellular control plane.
cpdata | Buffer of data to be sent over control plane connection |
cpdata_length | Length of data in bytes |
Implements ControlPlane_netif.
|
staticinherited |
Cellular module need to define an array of cellular properties which defines module supported property values.
property_array | array of module properties |