![]() |
Morse Micro IoT SDK
2.9.7
|
Modules | |
| ip configuration variables | |
Data Structures | |
| struct | mmagic_core_ip_status_rsp_args |
| Response arguments structure for ip_status. More... | |
| struct | mmagic_core_ip_enable_tcp_keepalive_offload_cmd_args |
| Command arguments structure for ip_enable_tcp_keepalive_offload. More... | |
| struct | mmagic_core_ip_set_whitelist_filter_cmd_args |
| Command arguments structure for ip_set_whitelist_filter. More... | |
| struct | mmagic_ip_link_status_event_args |
| Event arguments structure for ip_link_status. More... | |
Typedefs | |
| typedef void(* | mmagic_ip_link_status_event_handler_t) (const struct mmagic_ip_link_status_event_args *event_args, void *arg) |
| Handler for the ip-link_status event. More... | |
Functions | |
| static enum mmagic_status | mmagic_controller_ip_status (struct mmagic_controller *controller, struct mmagic_core_ip_status_rsp_args *rsp_args) |
| Gets the status of the IP stack. More... | |
| static enum mmagic_status | mmagic_controller_ip_reload (struct mmagic_controller *controller) |
| Reloads the IP stack network configuration based on the current values in the subsystem config. More... | |
| static enum mmagic_status | mmagic_controller_ip_enable_tcp_keepalive_offload (struct mmagic_controller *controller, struct mmagic_core_ip_enable_tcp_keepalive_offload_cmd_args *cmd_args) |
| Enables sending periodic TCP keep-alive packets by the morse chip allowing the TCP connection to be maintained without waking up the host processor. More... | |
| static enum mmagic_status | mmagic_controller_ip_disable_tcp_keepalive_offload (struct mmagic_controller *controller) |
| Disables sending of TCP keepalive packets. More... | |
| static enum mmagic_status | mmagic_controller_ip_set_whitelist_filter (struct mmagic_controller *controller, struct mmagic_core_ip_set_whitelist_filter_cmd_args *cmd_args) |
| Sets the whitelist filter specifing which incoming packets can wake the system from standby mode. More... | |
| static enum mmagic_status | mmagic_controller_ip_clear_whitelist_filter (struct mmagic_controller *controller) |
| Clears any applied whitelist filters. More... | |
| void | mmagic_controller_register_ip_link_status_handler (struct mmagic_controller *controller, mmagic_ip_link_status_event_handler_t handler, void *arg) |
| Register a handler for the ip-link_status event. More... | |
| typedef void(* mmagic_ip_link_status_event_handler_t) (const struct mmagic_ip_link_status_event_args *event_args, void *arg) |
Handler for the ip-link_status event.
Triggered when the IP stack has a valid address.
| event_args | Notication arguments received from the agent. |
| arg | Opaque argument that was provided when the callback was registered. |
Definition at line 4100 of file mmagic_controller.h.
|
inlinestatic |
Clears any applied whitelist filters.
| controller | Reference to the controller handle. |
Definition at line 4060 of file mmagic_controller.h.
|
inlinestatic |
Disables sending of TCP keepalive packets.
| controller | Reference to the controller handle. |
Definition at line 3984 of file mmagic_controller.h.
|
inlinestatic |
Enables sending periodic TCP keep-alive packets by the morse chip allowing the TCP connection to be maintained without waking up the host processor.
This needs to be enabled before opening a TCP connection. As of now, this feature will work only on the first TCP connection opened after this command.
| controller | Reference to the controller handle. | |
| [in] | cmd_args | Command arguments |
Definition at line 3955 of file mmagic_controller.h.
|
inlinestatic |
Reloads the IP stack network configuration based on the current values in the subsystem config.
| controller | Reference to the controller handle. |
Definition at line 3916 of file mmagic_controller.h.
|
inlinestatic |
Sets the whitelist filter specifing which incoming packets can wake the system from standby mode.
| controller | Reference to the controller handle. | |
| [in] | cmd_args | Command arguments |
Definition at line 4031 of file mmagic_controller.h.
|
inlinestatic |
Gets the status of the IP stack.
| controller | Reference to the controller handle. | |
| [out] | rsp_args | Pointer to the data structure to be filled out with the result. If the If the return code is not MMAGIC_STATUS_OK then the contents of this structure will be undefined. |
Definition at line 3890 of file mmagic_controller.h.
| void mmagic_controller_register_ip_link_status_handler | ( | struct mmagic_controller * | controller, |
| mmagic_ip_link_status_event_handler_t | handler, | ||
| void * | arg | ||
| ) |
Register a handler for the ip-link_status event.
Triggered when the IP stack has a valid address.
| controller | Reference to the the controller handle. |
| handler | The handler function to register. |
| arg | Opaque argument to be passed to the handler when it is invoked. |