Go to the documentation of this file.
52 #ifndef AP_SECURITY_SDK_SNAP_H
53 #define AP_SECURITY_SDK_SNAP_H
61 namespace VirgilIoTKit {
83 uint32_t device_roles);
205 #endif // AP_SECURITY_SDK_SNAP_H
uint8_t vs_device_manufacture_id_t[VS_DEVICE_MANUFACTURE_ID_SIZE]
Manufacture ID type.
Definition: provision-structs.h:120
const vs_netif_t * vs_snap_default_netif(void)
Return device network interface.
vs_status_e vs_snap_mac_addr(const vs_netif_t *netif, vs_mac_addr_t *mac_addr)
MAC address.
uint32_t vs_snap_service_id_t
SNAP service ID.
Definition: snap-structs.h:64
const vs_device_manufacture_id_t * vs_snap_device_manufacture(void)
Return current manufacture ID.
vs_status_e
Status code.
Definition: status_code.h:77
MAC address.
Definition: snap-structs.h:252
uint32_t vs_snap_element_t
SNAP element ID.
Definition: snap-structs.h:70
vs_snap_stat_t vs_snap_get_statistics(void)
Return SNAP statistics.
vs_status_e vs_snap_deinit()
Destroy SNAP.
uint8_t vs_device_type_t[VS_DEVICE_TYPE_SIZE]
Device type.
Definition: provision-structs.h:127
const vs_device_serial_t * vs_snap_device_serial(void)
Return current device serial number.
uint32_t vs_snap_device_roles(void)
Return device role.
Status codes and macroses.
SNAP service descriptor.
Definition: snap-structs.h:312
Network interface.
Definition: snap-structs.h:293
const vs_device_type_t * vs_snap_device_type(void)
Return current device type.
const vs_mac_addr_t * vs_snap_broadcast_mac(void)
Return MAC address.
SNAP statistics.
Definition: snap-structs.h:324
vs_status_e vs_snap_init(vs_netif_t *default_netif, const vs_device_manufacture_id_t manufacturer_id, const vs_device_type_t device_type, const vs_device_serial_t device_serial, uint32_t device_roles)
Init SNAP.
vs_status_e vs_snap_send_request(const vs_netif_t *netif, const vs_mac_addr_t *mac, vs_snap_service_id_t service_id, vs_snap_element_t element_id, const uint8_t *data, uint16_t data_sz)
Prepare and send SNAP message.
vs_status_e vs_snap_register_service(const vs_snap_service_t *service)
Register SNAP service.
uint8_t vs_device_serial_t[VS_DEVICE_SERIAL_SIZE]
Device serial number type.
Definition: provision-structs.h:134
vs_status_e vs_snap_send(const vs_netif_t *netif, const uint8_t *data, uint16_t data_sz)
Send SNAP message.