|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
MCUmgr Transport management API. More...
Files | |
| file | transport_mgmt.h |
| Header file for the MCUmgr transport management group API. | |
Macros | |
| #define | TRANSPORT_MGMT_DIRECTION_INCOMING false |
| Incoming transport whereby the device will forward read/write request packets on the specified transport and send them out on the transport it is bridged with. | |
| #define | TRANSPORT_MGMT_DIRECTION_OUTGOING true |
| Outgoing transport whereby the device will forward read/write response packets on the specified transport and send them out on the transport it is bridged with. | |
Functions | |
| bool | transport_mgmt_is_bridged (struct smp_transport *transport, bool direction) |
| Checks if a given transport is bridged or not. | |
| struct smp_transport * | transport_mgmt_get_other_transport (struct smp_transport *transport, bool direction) |
| Gets the other transport which is part of a bridge. | |
| const struct smp_transport_bridge * | transport_mgmt_get_bridge (struct smp_transport *transport, bool direction) |
| Gets a transport bridge context. | |
| int | transport_mgmt_disconnect_bridge (struct smp_transport_bridge *bridge) |
| Disconnects an active bridge. | |
| int | transport_mgmt_disconnect_transport (struct smp_transport *transport, bool incoming, bool outgoing) |
| Disconnects an active bridge. | |
| int | transport_mgmt_disconnect_all (void) |
| Disconnects all active bridges. | |
| const uint16_t | transport_mgmt_group_id (void) |
| Gets the group ID for transport management group. | |
MCUmgr Transport management API.
| #define TRANSPORT_MGMT_DIRECTION_INCOMING false |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Incoming transport whereby the device will forward read/write request packets on the specified transport and send them out on the transport it is bridged with.
| #define TRANSPORT_MGMT_DIRECTION_OUTGOING true |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Outgoing transport whereby the device will forward read/write response packets on the specified transport and send them out on the transport it is bridged with.
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Config types.
| enum transport_mgmt_ids |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Command IDs for transport management group.
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Command result codes for transport management group.
| int transport_mgmt_disconnect_all | ( | void | ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Disconnects all active bridges.
| int transport_mgmt_disconnect_bridge | ( | struct smp_transport_bridge * | bridge | ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Disconnects an active bridge.
| bridge | bridge context |
| int transport_mgmt_disconnect_transport | ( | struct smp_transport * | transport, |
| bool | incoming, | ||
| bool | outgoing ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Disconnects an active bridge.
| transport | transport which is bridged |
| incoming | if true, will disconnect the bridge context that this is bridged to in incoming mode |
| outgoing | if true, will disconnect the bridge context that this is bridged to in outgoing mode |
| const struct smp_transport_bridge * transport_mgmt_get_bridge | ( | struct smp_transport * | transport, |
| bool | direction ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Gets a transport bridge context.
| transport | transport which is bridged |
| direction | specifies the direction of the transport for the bridge to get either TRANSPORT_MGMT_DIRECTION_INCOMING or TRANSPORT_MGMT_DIRECTION_OUTGOING |
| struct smp_transport * transport_mgmt_get_other_transport | ( | struct smp_transport * | transport, |
| bool | direction ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Gets the other transport which is part of a bridge.
| transport | transport which is bridged |
| direction | specifies the direction of the bridge to check to get the opposing transport for, either TRANSPORT_MGMT_DIRECTION_INCOMING or TRANSPORT_MGMT_DIRECTION_OUTGOING |
| const uint16_t transport_mgmt_group_id | ( | void | ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Gets the group ID for transport management group.
Users must implement this function in their own code if they wish to use a dynamic group ID set at run-time when CONFIG_MCUMGR_GRP_TRANSPORT_GROUP_ID_CUSTOM_FUNCTION is enabled.
| bool transport_mgmt_is_bridged | ( | struct smp_transport * | transport, |
| bool | direction ) |
#include <zephyr/mgmt/mcumgr/grp/transport_mgmt/transport_mgmt.h>
Checks if a given transport is bridged or not.
| transport | transport to check status of |
| direction | specifies the direction of the bridge to check for, either TRANSPORT_MGMT_DIRECTION_INCOMING or TRANSPORT_MGMT_DIRECTION_OUTGOING |