![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
#include "ptp_profile_presets.h"#include "ptp_types.h"#include "ptp_defs.h"#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | PtpProfilePreset |
| PTP profile preset structure. More... | |
| struct | PtpTlvPreset |
| PTP TLV presets. More... | |
Enumerations | |
| enum | PtpProfileEnum { PTP_PROFILE_DEFAULT , PTP_PROFILE_GPTP , PTP_PROFILE_DEF_P2P , PTP_PROFILE_N } |
| Enumeration type for predefined profiles. More... | |
| enum | PtpTlvPresetEnum { PTP_TLVP_GPTP_ORG , PTP_TLVP_N } |
Functions | |
| struct | __attribute__ ((packed)) |
| const PtpProfile * | ptp_profile_preset_get (const char *pName) |
| const PtpProfileTlvElement * | ptp_tlv_chain_preset_get (const char *pName) |
| size_t | ptp_profile_preset_cnt () |
| size_t | ptp_tlv_chain_preset_cnt () |
| const char * | ptp_profile_preset_get_name (size_t i) |
| const char * | ptp_tlv_chain_preset_get_name (size_t i) |
Variables | |
| PtpGPtpOrganizationTlv | |
| static const PtpGPtpOrganizationTlv | gPtp_OrgTlv |
| static const PtpProfileTlvElement | gPtp_TlvSet |
| static PtpTlvPreset | sTlvPresets [PTP_TLVP_N] |
| static PtpProfilePreset | sPtpProfiles [PTP_PROFILE_N] |
| enum PtpProfileEnum |
Enumeration type for predefined profiles.
| Enumerator | |
|---|---|
| PTP_PROFILE_DEFAULT | |
| PTP_PROFILE_GPTP | |
| PTP_PROFILE_DEF_P2P | |
| PTP_PROFILE_N | |
Definition at line 11 of file ptp_profile_presets.c.
| enum PtpTlvPresetEnum |
| Enumerator | |
|---|---|
| PTP_TLVP_GPTP_ORG | |
| PTP_TLVP_N | |
Definition at line 18 of file ptp_profile_presets.c.
| struct __attribute__ | ( | (packed) | ) |
| size_t ptp_profile_preset_cnt | ( | ) |
Get number of predefined profiles.
Definition at line 152 of file ptp_profile_presets.c.
| const PtpProfile * ptp_profile_preset_get | ( | const char * | pName | ) |
Get profile by name.
| pName | name of the desired profile |
Definition at line 128 of file ptp_profile_presets.c.
| const char * ptp_profile_preset_get_name | ( | size_t | i | ) |
Get profile name by index.
| i | profile index |
Definition at line 160 of file ptp_profile_presets.c.
| size_t ptp_tlv_chain_preset_cnt | ( | ) |
Get number of predefined TLV chains.
Definition at line 156 of file ptp_profile_presets.c.
| const PtpProfileTlvElement * ptp_tlv_chain_preset_get | ( | const char * | pName | ) |
Get TLV chain by name.
| pName | name of the desired TLV chain |
Definition at line 140 of file ptp_profile_presets.c.
| const char * ptp_tlv_chain_preset_get_name | ( | size_t | i | ) |
Get TLV chain by index.
| i | TLV chain index |
Definition at line 168 of file ptp_profile_presets.c.
|
static |
Definition at line 35 of file ptp_profile_presets.c.
|
static |
Definition at line 45 of file ptp_profile_presets.c.
| PtpGPtpOrganizationTlv |
Definition at line 33 of file ptp_profile_presets.c.
|
static |
Predefined profiles.
Definition at line 84 of file ptp_profile_presets.c.
|
static |
Predefined TLV chains.
Definition at line 74 of file ptp_profile_presets.c.