MT7697 API Reference  LinkIt SDK v4
Enum
HAL » PWM

Overview

Enumerations

enum  hal_pwm_status_t {
  HAL_PWM_STATUS_ERROR = -4,
  HAL_PWM_STATUS_ERROR_CHANNEL = -3,
  HAL_PWM_STATUS_INVALID_PARAMETER = -2,
  HAL_PWM_STATUS_INVALID_FREQUENCY = -1,
  HAL_PWM_STATUS_OK = 0
}
 This enum defines the API return type. More...
 
enum  hal_pwm_running_status_t {
  HAL_PWM_IDLE = 0,
  HAL_PWM_BUSY = 1
}
 This enum defines the PWM running status. More...
 
enum  hal_pwm_channel_t {
  HAL_PWM_0 = 0,
  HAL_PWM_1 = 1,
  HAL_PWM_2 = 2,
  HAL_PWM_3 = 3,
  HAL_PWM_4 = 4,
  HAL_PWM_5 = 5,
  HAL_PWM_18 = 18,
  HAL_PWM_19 = 19,
  HAL_PWM_20 = 20,
  HAL_PWM_21 = 21,
  HAL_PWM_22 = 22,
  HAL_PWM_23 = 23,
  HAL_PWM_24 = 24,
  HAL_PWM_25 = 25,
  HAL_PWM_26 = 26,
  HAL_PWM_27 = 27,
  HAL_PWM_28 = 28,
  HAL_PWM_29 = 29,
  HAL_PWM_30 = 30,
  HAL_PWM_31 = 31,
  HAL_PWM_32 = 32,
  HAL_PWM_33 = 33,
  HAL_PWM_34 = 34,
  HAL_PWM_35 = 35,
  HAL_PWM_36 = 36,
  HAL_PWM_37 = 37,
  HAL_PWM_38 = 38,
  HAL_PWM_39 = 39,
  HAL_PWM_MAX_CHANNEL
}
 pwm channel More...
 
enum  hal_pwm_source_clock_t {
  HAL_PWM_CLOCK_32KHZ = 0,
  HAL_PWM_CLOCK_2MHZ = 1,
  HAL_PWM_CLOCK_20MHZ = 2,
  HAL_PWM_CLOCK_26MHZ = 3,
  HAL_PWM_CLOCK_40MHZ = 4,
  HAL_PWM_CLOCK_52MHZ = 5,
  HAL_PWM_CLOCK_MAX
}
 pwm clock source seletion More...
 

Enumeration Type Documentation

pwm channel

Enumerator
HAL_PWM_0 

pwm channel0

HAL_PWM_1 

pwm channel1

HAL_PWM_2 

pwm channel2

HAL_PWM_3 

pwm channel3

HAL_PWM_4 

pwm channel4

HAL_PWM_5 

pwm channel5

HAL_PWM_18 

pwm channel18

HAL_PWM_19 

pwm channel19

HAL_PWM_20 

pwm channel20

HAL_PWM_21 

pwm channel21

HAL_PWM_22 

pwm channel22

HAL_PWM_23 

pwm channel23

HAL_PWM_24 

pwm channel24

HAL_PWM_25 

pwm channel25

HAL_PWM_26 

pwm channel26

HAL_PWM_27 

pwm channel27

HAL_PWM_28 

pwm channel28

HAL_PWM_29 

pwm channel29

HAL_PWM_30 

pwm channel30

HAL_PWM_31 

pwm channel31

HAL_PWM_32 

pwm channel32

HAL_PWM_33 

pwm channel33

HAL_PWM_34 

pwm channel34

HAL_PWM_35 

pwm channel35

HAL_PWM_36 

pwm channel36

HAL_PWM_37 

pwm channel37

HAL_PWM_38 

pwm channel38

HAL_PWM_39 

pwm channel39

HAL_PWM_MAX_CHANNEL 

pwm max channel <invalid>

This enum defines the PWM running status.

Enumerator
HAL_PWM_IDLE 

The PWM status is idle.

HAL_PWM_BUSY 

The PWM status is busy.

pwm clock source seletion

Enumerator
HAL_PWM_CLOCK_32KHZ 

pwm clock source: Embedded 32KHz clock

HAL_PWM_CLOCK_2MHZ 

pwm clock srouce: Embedded 2MHz clock

HAL_PWM_CLOCK_20MHZ 

pwm clock srouce: External 20MHz clock

HAL_PWM_CLOCK_26MHZ 

pwm clock srouce: External 26MHz clock

HAL_PWM_CLOCK_40MHZ 

pwm clock srouce: External 40MHz clock

HAL_PWM_CLOCK_52MHZ 

pwm clock srouce: External 52MHz clock

HAL_PWM_CLOCK_MAX 

pwm max clock <invalid>

This enum defines the API return type.

Enumerator
HAL_PWM_STATUS_ERROR 

An error occurred during the function call.

HAL_PWM_STATUS_ERROR_CHANNEL 

A wrong PWM channel is given.

HAL_PWM_STATUS_INVALID_PARAMETER 

A wrong parameter is given.

HAL_PWM_STATUS_INVALID_FREQUENCY 

A smaller frequency is given.

HAL_PWM_STATUS_OK 

No error during the function call.