Home
last modified time | relevance | path

Searched refs:pin (Results 1 – 25 of 40) sorted by relevance

12

/drivers/hdf_core/adapter/platform/gpio/
Dgpio_gr5xx.c39 static inline app_io_type_t GpioDevPinMap(uint32_t id, uint32_t *pin) in GpioDevPinMap() argument
42 *pin = 1 << (id - IO_BASE_GPIO); in GpioDevPinMap()
45 *pin = 1 << (id - IO_BASE_AON); in GpioDevPinMap()
48 *pin = 1 << (id - IO_BASE_MSIO); in GpioDevPinMap()
67 uint32_t pin = 0; in GpioDevSetDir() local
76 iotype = GpioDevPinMap(gpio, &pin); in GpioDevSetDir()
77 ioInit.pin = pin; in GpioDevSetDir()
112 uint32_t pin = 0; in GpioDevWrite() local
120 ioType = GpioDevPinMap(gpio, &pin); in GpioDevWrite()
122 app_io_write_pin(ioType, pin, APP_IO_PIN_RESET); in GpioDevWrite()
[all …]
Dgpio_bes.c46 uint32_t pin; member
77 static void OemGpioIrqHdl(enum HAL_GPIO_PIN_T pin) in OemGpioIrqHdl() argument
79 if (pin >= HAL_GPIO_PIN_LED_NUM) { in OemGpioIrqHdl()
80 HDF_LOGE("%s %d, error pin:%d", __func__, __LINE__, pin); in OemGpioIrqHdl()
84 if (pin == (enum HAL_GPIO_PIN_T)g_gpioPinReflectionMap[i]) { in OemGpioIrqHdl()
146 gpioCfg.pin = device->port; in InitGpioDevice()
180 uint32_t pins[] = HCS_ARRAYS(HCS_NODE(PLATFORM_GPIO_CONFIG, pin)); in GetGpioDeviceResource()
184 resource->pin = pins[i]; in GetGpioDeviceResource()
189 g_gpioPinReflectionMap[resource->pin] = relPin; in GetGpioDeviceResource()
191 resource->pin = relPin; in GetGpioDeviceResource()
[all …]
Dgpio_stm32f4xx.c46 uint32_t pin; member
83 uint32_t pin; member
108 static void OemGpioIrqHdl(uint32_t pin) in OemGpioIrqHdl() argument
110 GpioCntlrIrqCallback(&g_stmGpioCntlr, pin); in OemGpioIrqHdl()
236 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GpioParseHcs()
268 g_gpioPinsMap[resource->pin].group = resource->group; in GpioParseHcs()
269 g_gpioPinsMap[resource->pin].realPin = resource->realPin; in GpioParseHcs()
270 g_gpioPinsMap[resource->pin].pin = resource->pin; in GpioParseHcs()
297 uint32_t pins[] = HCS_ARRAYS(HCS_NODE(PLATFORM_GPIO_CONFIG, pin)); in GetGpioDeviceResource()
306 resource->pin = pins[i]; in GetGpioDeviceResource()
[all …]
Dgpio_asr.c49 uint32_t pin; member
292 uint32_t pins[] = HCS_ARRAYS(HCS_NODE(PLATFORM_GPIO_CONFIG, pin)); in GetGpioDeviceResource()
296 resource->pin = pins[i]; in GetGpioDeviceResource()
301 g_gpioPinMap[resource->pin].port = (uint8_t)relPin; in GetGpioDeviceResource()
302 g_gpioPinMap[resource->pin].config = (asr_gpio_config_t)resource->config; in GetGpioDeviceResource()
304 resource->pin = relPin; in GetGpioDeviceResource()
345 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
361 g_gpioPinMap[resource->pin].port = (uint8_t)relPin; in GetGpioDeviceResource()
362 g_gpioPinMap[resource->pin].config = (asr_gpio_config_t)resource->config; in GetGpioDeviceResource()
365 resource->pin = relPin; in GetGpioDeviceResource()
/drivers/interface/pin_auth/v1_0/
DIPinAuthInterface.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
33 * @brief Defines the API for getting the executor list of the pin auth driver.
44 * @brief Defines the API for getting the executor list of the pin auth driver.
DIExecutorCallback.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
60 * @brief Defines the function for getting pin data.
62 * @param salt Indicates the value used to compute pin data.
63 * @param authSubType Indicates the pin sub type.
DPinAuthTypes.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
33 …* @brief Defines the enumeration and data structure of the pin auth driver, including AuthType, Ex…
DIExecutor.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
86 * @brief Sets pin data.
89 * @param authSubType Indicates the pin sub type.
90 * @param data Indicates the pin data.
/drivers/interface/pin_auth/v1_1/
DIPinAuthInterface.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
33 * @brief Defines the API for getting the executor list of the pin auth driver.
45 * @brief Defines the API for getting the executor list of the pin auth driver.
DIExecutorCallback.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
52 * @brief Defines the function for getting pin data.
54 * @param scheduleId is the schedule ID of the pin data.
56 * @param authSubType Indicates the pin sub type.
DPinAuthTypes.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
33 …* @brief Defines the enumeration and data structure of the pin auth driver, including AuthType, Ex…
DIExecutor.idl20 * @brief Provides APIs for the pin auth driver.
22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth…
23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors.
24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform…
/drivers/interface/audio/v1_0/
DAudioTypes.idl43 * @brief Enumerates the pin of an audio adapter.
46 PIN_NONE = 0, /**< Invalid pin */
47 PIN_OUT_SPEAKER = 1 << 0, /**< Speaker output pin */
48 PIN_OUT_HEADSET = 1 << 1, /**< Wired headset pin for output */
49 PIN_OUT_LINEOUT = 1 << 2, /**< Line-out pin */
50 PIN_OUT_HDMI = 1 << 3, /**< HDMI output pin */
51 PIN_OUT_USB = 1 << 4, /**< USB output pin */
52 PIN_OUT_USB_EXT = 1 << 5, /**< Extended USB output pin*/
53 PIN_OUT_EARPIECE = 1 << 5 | 1 << 4, /**< Earpiece output pin */
54 PIN_OUT_BLUETOOTH_SCO = 1 << 6, /**< Bluetooth SCO output pin */
[all …]
/drivers/hdf_core/framework/support/platform/src/pin/
Dpin_if_u.c34 struct PinInfo *pin = NULL; in AddNode() local
42 pin = OsalMemCalloc(sizeof(struct PinInfo)); in AddNode()
43 if (pin == NULL) { in AddNode()
47 DListHeadInit(&pin->node); in AddNode()
48 if (strcpy_s(pin->pinName, PIN_NAME_LEN, pinName) != EOK) { in AddNode()
50 OsalMemFree(pin); in AddNode()
54 DListInsertTail(&pin->node, head); in AddNode()
56 return pin->pinName; in AddNode()
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/
Daudio_capture_vendor.h26 struct IAudioCapture *FindCaptureCreated(enum AudioPortPin pin, const struct AudioSampleAttributes …
Daudio_render_vendor.h26 struct IAudioRender *FindRenderCreated(enum AudioPortPin pin, const struct AudioSampleAttributes *a…
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
Daudio_capture_vdi.h26 struct IAudioCapture *FindCaptureCreated(enum AudioPortPin pin, const struct AudioSampleAttributes …
Daudio_render_vdi.h26 struct IAudioRender *FindRenderCreated(enum AudioPortPin pin, const struct AudioSampleAttributes *a…
/drivers/interface/user_auth/v1_0/
DUserAuthTypes.idl88 * @brief Defines pin auth's subtype.
94 PIN_SIX = 10000, /**< Six digit pin. */
95 PIN_NUMBER = 10001, /**< Digit pin. */
96 PIN_MIX = 10002, /**< Mixing pin. */
/drivers/hdf_core/adapter/platform/spi/
Dspi_bes.c137 pinMuxSpi[SPI_PIN_0].pin = resource->spiMisoPin; in SpiIomuxInit()
138 pinMuxSpi[SPI_PIN_1].pin = resource->spiClkPin; in SpiIomuxInit()
139 pinMuxSpi[SPI_PIN_2].pin = resource->spiCsPin; in SpiIomuxInit()
140 pinMuxSpi[SPI_PIN_3].pin = resource->spiMosiPin; in SpiIomuxInit()
154 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_0].pin, DRIVER_LEVEL); in SpiIomuxInit()
155 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_1].pin, DRIVER_LEVEL); in SpiIomuxInit()
156 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_2].pin, DRIVER_LEVEL); in SpiIomuxInit()
157 hal_iomux_set_io_drv(pinMuxSpi[SPI_PIN_3].pin, DRIVER_LEVEL); in SpiIomuxInit()
/drivers/hdf_core/adapter/uhdf/platform/
DBUILD.gn36 "$hdf_framework_path/support/platform/include/pin",
65 "$hdf_framework_path/support/platform/src/pin/pin_if_u.c",
/drivers/peripheral/audio/hal/pathselect/src/
Daudio_pathselect.c99 static const char *AudioPathSelGetDeviceType(enum AudioPortPin pin) in AudioPathSelGetDeviceType() argument
101 if (pin < PIN_OUT_SPEAKER || pin > PIN_IN_BLUETOOTH_SCO_HEADSET) { in AudioPathSelGetDeviceType()
104 switch (pin) { in AudioPathSelGetDeviceType()
/drivers/hdf_core/adapter/khdf/liteos/platform/
DBUILD.gn106 "$HDF_FRAMEWORKS_PATH/support/platform/src/pin/pin_core.c",
107 "$HDF_FRAMEWORKS_PATH/support/platform/src/pin/pin_if.c",
254 "$HDF_FRAMEWORKS_PATH/support/platform/include/pin",
DMakefile89 LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/pin/pin_if.c \
90 $(HDF_FRAMEWORKS)/support/platform/src/pin/pin_core.c
/drivers/hdf_core/adapter/platform/i2c/
Di2c_bes.c80 pinMuxI2c[0].pin = resource->sclPin; in I2cDeviceIomuxInit()
81 pinMuxI2c[1].pin = resource->sdaPin; in I2cDeviceIomuxInit()

12