Mistake on this page?
Report an issue in GitHub or email us
AT_ControlPlane_netif.h
1 #include "ControlPlane_netif.h"
2 #include "ATHandler.h"
3 #include "AT_CellularBase.h"
4 
5 namespace mbed {
6 
8 public:
9  AT_ControlPlane_netif(ATHandler &at, int cid);
10  virtual ~AT_ControlPlane_netif();
11 
12 protected:
13 
14 // ControlPlane_netif
15 
16  /* Sends data using +CSODCP specified in
17  * 3GPP 27007 10.1.43: Sending of originating data via the control plane
18  */
19  virtual nsapi_size_or_error_t send(const void *cpdata, nsapi_size_t cpdata_length);
20 
21 
22  /* Receives data using +CRTDCP specified in
23  * 3GPP 27007 10.1.44: Reporting of terminating data via the control plane
24  */
25  virtual nsapi_size_or_error_t recv(void *cpdata, nsapi_size_t cpdata_length);
26 
27  virtual void data_received();
28  virtual void attach(void (*callback)(void *), void *data);
29 
30  // Id of the PDP context that enables the control plane data connection
31  int _cid;
32 
33 private:
34  void (*_cb)(void *);
35  void *_data;
36  char _recv_buffer[MAX_CP_DATA_RECV_LEN];
37  size_t _recv_len;
38  // Called on receiving URC: +CRTDCP
39  void urc_cp_recv();
40 };
41 
42 } //mbed namespace
Implements support for data transfer using Control Plane CIoT EPS optimization specified in 3GPP 23...
virtual nsapi_size_or_error_t recv(void *cpdata, nsapi_size_t cpdata_length)
Receive data over cellular control plane.
Implements support for data transfer using Control Plane CIoT EPS optimization.
virtual nsapi_size_or_error_t send(const void *cpdata, nsapi_size_t cpdata_length)
Send data over cellular control plane.
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets.
Definition: nsapi_types.h:106
virtual void data_received()
Receives data from the control plane PDP context.
Callback< R(ArgTs...)> callback(R(*func)(ArgTs...)=0)
Create a callback class with type inferred from the arguments.
Definition: Callback.h:709
Class AT_CellularBase.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
Definition: nsapi_types.h:99
Class for sending AT commands and parsing AT responses.
Definition: ATHandler.h:66
virtual void attach(void(*callback)(void *), void *data)
Register a callback on state change of the socket.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.