Lines Matching refs:handle

78 void PWMTimerCC32XX_close(PWM_Handle handle);
79 int_fast16_t PWMTimerCC32XX_control(PWM_Handle handle, uint_fast16_t cmd,
81 void PWMTimerCC32XX_init(PWM_Handle handle);
82 PWM_Handle PWMTimerCC32XX_open(PWM_Handle handle, PWM_Params *params);
83 int_fast16_t PWMTimerCC32XX_setDuty(PWM_Handle handle, uint32_t dutyValue);
84 int_fast16_t PWMTimerCC32XX_setPeriod(PWM_Handle handle, uint32_t periodValue);
85 int_fast16_t PWMTimerCC32XX_setDutyAndPeriod(PWM_Handle handle, uint32_t dutyValue, uint32_t period…
86 void PWMTimerCC32XX_start(PWM_Handle handle);
87 void PWMTimerCC32XX_stop(PWM_Handle handle);
260 static int initHw(PWM_Handle handle, uint32_t period, uint32_t duty) in initHw() argument
265 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in initHw()
301 result = PWMTimerCC32XX_setPeriod(handle, period); in initHw()
306 result = PWMTimerCC32XX_setDuty(handle, duty); in initHw()
321 PWM_Handle handle = (PWM_Handle) clientArg; in postNotifyFxn() local
322 PWMTimerCC32XX_Object *object = handle->object; in postNotifyFxn()
324 initHw(handle, object->period, object->duty); in postNotifyFxn()
333 void PWMTimerCC32XX_close(PWM_Handle handle) in PWMTimerCC32XX_close() argument
335 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_close()
336 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_close()
355 PWMTimerCC32XX_stop(handle); in PWMTimerCC32XX_close()
375 DebugP_log1("PWM:(%p) is closed", (uintptr_t) handle); in PWMTimerCC32XX_close()
382 int_fast16_t PWMTimerCC32XX_control(PWM_Handle handle, uint_fast16_t cmd, in PWMTimerCC32XX_control() argument
393 void PWMTimerCC32XX_init(PWM_Handle handle) in PWMTimerCC32XX_init() argument
401 PWM_Handle PWMTimerCC32XX_open(PWM_Handle handle, PWM_Params *params) in PWMTimerCC32XX_open() argument
404 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_open()
405 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_open()
422 DebugP_log1("PWM:(%p) already opened.", (uintptr_t) handle); in PWMTimerCC32XX_open()
455 (uintptr_t) handle); in PWMTimerCC32XX_open()
465 postNotifyFxn, (uintptr_t) handle); in PWMTimerCC32XX_open()
480 if (initHw(handle, params->periodValue, params->dutyValue) != in PWMTimerCC32XX_open()
482 PWMTimerCC32XX_close(handle); in PWMTimerCC32XX_open()
485 (uintptr_t) handle); in PWMTimerCC32XX_open()
495 PWMTimerCC32XX_stop(handle); in PWMTimerCC32XX_open()
498 (uintptr_t) handle, params->periodValue, params->dutyValue); in PWMTimerCC32XX_open()
500 return (handle); in PWMTimerCC32XX_open()
507 int_fast16_t PWMTimerCC32XX_setDuty(PWM_Handle handle, uint32_t dutyValue) in PWMTimerCC32XX_setDuty() argument
512 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_setDuty()
513 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_setDuty()
529 (uintptr_t) handle); in PWMTimerCC32XX_setDuty()
537 DebugP_log1("PWM:(%p) duty is out of range.", (uintptr_t) handle); in PWMTimerCC32XX_setDuty()
582 DebugP_log2("PWM:(%p) duty set to: %d", (uintptr_t) handle, dutyValue); in PWMTimerCC32XX_setDuty()
591 int_fast16_t PWMTimerCC32XX_setPeriod(PWM_Handle handle, uint32_t periodValue) in PWMTimerCC32XX_setPeriod() argument
596 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_setPeriod()
597 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_setPeriod()
613 (uintptr_t) handle); in PWMTimerCC32XX_setPeriod()
621 DebugP_log1("PWM:(%p) period is out of range.", (uintptr_t) handle); in PWMTimerCC32XX_setPeriod()
635 DebugP_log2("PWM:(%p) period set to: %d", (uintptr_t) handle, periodValue); in PWMTimerCC32XX_setPeriod()
644 int_fast16_t PWMTimerCC32XX_setDutyAndPeriod(PWM_Handle handle, uint32_t dutyValue, uint32_t period… in PWMTimerCC32XX_setDutyAndPeriod() argument
650 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_setDutyAndPeriod()
651 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_setDutyAndPeriod()
668 DebugP_log1("PWM:(%p) period units could not be determined.", (uintptr_t) handle); in PWMTimerCC32XX_setDutyAndPeriod()
676 DebugP_log1("PWM:(%p) period is out of range.", (uintptr_t) handle); in PWMTimerCC32XX_setDutyAndPeriod()
740 void PWMTimerCC32XX_start(PWM_Handle handle) in PWMTimerCC32XX_start() argument
743 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_start()
744 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_start()
777 void PWMTimerCC32XX_stop(PWM_Handle handle) in PWMTimerCC32XX_stop() argument
781 PWMTimerCC32XX_Object *object = handle->object; in PWMTimerCC32XX_stop()
782 PWMTimerCC32XX_HWAttrsV2 const *hwAttrs = handle->hwAttrs; in PWMTimerCC32XX_stop()