#define PPS_GEN_MAX_SOURCES 16 /* should be enough... */
struct pps_gen_device;
/** * struct pps_gen_source_info - the specific PPS generator info * @use_system_clock: true, if the system clock is used to generate pulses * @get_time: query the time stored into the generator clock * @enable: enable/disable the PPS pulses generation * * This is the main generator struct where all needed information must be * placed before calling the pps_gen_register_source().
*/ struct pps_gen_source_info { bool use_system_clock;
int (*get_time)(struct pps_gen_device *pps_gen, struct timespec64 *time); int (*enable)(struct pps_gen_device *pps_gen, bool enable);
/* private: internal use only */ struct module *owner; struct device *parent; /* for device_create */
};
/* The main struct */ struct pps_gen_device { conststruct pps_gen_source_info *info; /* PSS generator info */ bool enabled; /* PSS generator status */
unsignedint event; unsignedint sequence;
unsignedint last_ev; /* last PPS event id */
wait_queue_head_t queue; /* PPS event queue */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.