struct led_flash_ops { /* set flash brightness */ int (*flash_brightness_set)(struct led_classdev_flash *fled_cdev,
u32 brightness); /* get flash brightness */ int (*flash_brightness_get)(struct led_classdev_flash *fled_cdev,
u32 *brightness); /* set flash strobe state */ int (*strobe_set)(struct led_classdev_flash *fled_cdev, bool state); /* get flash strobe state */ int (*strobe_get)(struct led_classdev_flash *fled_cdev, bool *state); /* set flash timeout */ int (*timeout_set)(struct led_classdev_flash *fled_cdev, u32 timeout); /* get the flash LED fault */ int (*fault_get)(struct led_classdev_flash *fled_cdev, u32 *fault); /* set flash duration */ int (*duration_set)(struct led_classdev_flash *fled_cdev, u32 duration);
};
/* *Currentvalueofaflashsettingalong *withitsconstraints.
*/ struct led_flash_setting { /* maximum allowed value */
u32 min; /* maximum allowed value */
u32 max; /* step value */
u32 step; /* current value */
u32 val;
};
struct led_classdev_flash { /* led class device */ struct led_classdev led_cdev;
/* flash led specific ops */ conststruct led_flash_ops *ops;
/* flash brightness value in microamperes along with its constraints */ struct led_flash_setting brightness;
/* flash timeout value in microseconds along with its constraints */ struct led_flash_setting timeout;
/* flash timeout value in microseconds along with its constraints */ struct led_flash_setting duration;
/* LED Flash class sysfs groups */ conststruct attribute_group *sysfs_groups[LED_FLASH_SYSFS_GROUPS_SIZE];
};
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 und die Messung sind noch experimentell.