Intestazione pwm.h di ApplibsApplibs pwm.h
Intestazione: #include <applibs/pwm.h>Header: #include <applibs/pwm.h>
L'intestazione pwm di Applibs contiene funzioni che interagiscono con i modulatori di larghezza di impulso (PWM).The Applibs pwm header contains functions that interact with pulse-width modulators (PWM). Le funzioni PWM sono thread-safe.PWM functions are thread-safe.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Le funzioni PWM sono consentite solo se il manifesto dell'applicazione include la funzionalità Pwm.PWM functions are only permitted if the application has the Pwm capability in the application manifest.
ID dipendenti dall'hardwareHardware dependent IDs
Le funzioni PWM fanno riferimento ad alcuni identificatori dipendenti dall'hardware.PWM functions reference some identifiers that are hardware dependent. Gli ID dipendenti dall'hardware sono costanti definite nei file di definizione hardware per un dispositivo.Hardware dependent IDs are constants that are defined in the hardware definition files for a device. Per altre informazioni, vedere Gestire le dipendenze hardware di destinazione.For more information, see Manage target hardware dependencies.
Concetti ed esempiConcepts and samples
FunzioniFunctions
FunzioneFunction | DescrizioneDescription |
---|---|
PWM_ApplyPWM_Apply | Imposta lo stato di un canale PWM per un controller PWM.Sets the state of a PWM channel for a PWM controller. |
PWM_OpenPWM_Open | Apre un controller PWM e restituisce un descrittore di file da usare per le chiamate successive.Opens a PWM controller, and returns a file descriptor to use for subsequent calls. |
StructStructs
StructStruct | DescrizioneDescription |
---|---|
PwmStatePwmState | Stato di un canale PWM.The state of a PWM channel. |
EnumerazioniEnums
EnumEnum | DescrizioneDescription |
---|---|
PWM_PolarityPWM_Polarity | Polarità di un canale PWM.The polarity of a PWM channel. |
TypedefTypedefs
TypedefTypedef | DescrizioneDescription |
---|---|
PWM_ControllerIdPWM_ControllerId | ID di un controller PWM.The ID of a PWM controller. |
PWM_ChannelIdPWM_ChannelId | ID di un canale PWM.The ID of a PWM channel. |