/drivers/hdf_core/framework/include/platform/ |
H A D | sdio_if.h | 124 * @return Returns the device handle {@link DevHandle} of the SDIO controller if the operation is successful; 129 DevHandle SdioOpen(int16_t mmcBusNum, struct SdioFunctionConfig *config); 141 void SdioClose(DevHandle handle); 158 int32_t SdioReadBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size); 175 int32_t SdioWriteBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size); 194 int32_t SdioReadBytesFromFixedAddr(DevHandle handle, uint8_t *data, 214 int32_t SdioWriteBytesToFixedAddr(DevHandle handle, uint8_t *data, 231 int32_t SdioReadBytesFromFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size); 247 int32_t SdioWriteBytesToFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size); 262 int32_t SdioSetBlockSize(DevHandle handl [all...] |
H A D | clock_if.h | 21 DevHandle ClockOpen(uint32_t number); 23 int32_t ClockClose(DevHandle handle); 25 int32_t ClockEnable(DevHandle handle); 27 int32_t ClockDisable(DevHandle handle); 29 int32_t ClockSetRate(DevHandle handle, uint32_t rate); 31 int32_t ClockGetRate(DevHandle handle, uint32_t *rate); 33 int32_t ClockSetParent(DevHandle child, DevHandle parent); 35 DevHandle ClockGetParent(DevHandle handl [all...] |
H A D | regulator_if.h | 43 DevHandle RegulatorOpen(const char *name);
53 void RegulatorClose(DevHandle handle);
64 int32_t RegulatorEnable(DevHandle handle);
75 int32_t RegulatorDisable(DevHandle handle);
87 int32_t RegulatorForceDisable(DevHandle handle);
100 int32_t RegulatorSetVoltage(DevHandle handle, uint32_t minUv, uint32_t maxUv);
110 int32_t RegulatorGetVoltage(DevHandle handle, uint32_t *voltage);
123 int32_t RegulatorSetCurrent(DevHandle handle, uint32_t minUa, uint32_t maxUa);
133 int32_t RegulatorGetCurrent(DevHandle handle, uint32_t *regCurrent);
143 int32_t RegulatorGetStatus(DevHandle handl [all...] |
H A D | watchdog_if.h | 82 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle); 94 void WatchdogClose(DevHandle handle); 108 int32_t WatchdogGetStatus(DevHandle handle, int32_t *status); 124 int32_t WatchdogStart(DevHandle handle); 136 int32_t WatchdogStop(DevHandle handle); 147 int32_t WatchdogSetTimeout(DevHandle handle, uint32_t seconds); 158 int32_t WatchdogGetTimeout(DevHandle handle, uint32_t *seconds); 171 int32_t WatchdogFeed(DevHandle handle); 179 int32_t WatchdogBark(DevHandle handle); 181 int32_t WatchdogEnable(DevHandle handl [all...] |
H A D | rtc_if.h | 105 * @return Returns {@link DevHandle} if the operation is successful; returns <b>NULL</b> if the operation fails. 108 DevHandle RtcOpen(void); 117 void RtcClose(DevHandle handle); 132 int32_t RtcReadTime(DevHandle handle, struct RtcTime *time); 147 int32_t RtcWriteTime(DevHandle handle, const struct RtcTime *time); 160 int32_t RtcReadAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, struct RtcTime *time); 176 int32_t RtcWriteAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time); 189 int32_t RtcRegisterAlarmCallback(DevHandle handle, enum RtcAlarmIndex alarmIndex, RtcAlarmCallback cb); 206 int32_t RtcAlarmInterruptEnable(DevHandle handle, enum RtcAlarmIndex alarmIndex, uint8_t enable); 220 int32_t RtcGetFreq(DevHandle handl [all...] |
H A D | pwm_if.h | 120 DevHandle PwmOpen(uint32_t num); 129 void PwmClose(DevHandle handle); 141 int32_t PwmSetPeriod(DevHandle handle, uint32_t period); 153 int32_t PwmSetDuty(DevHandle handle, uint32_t duty); 166 int32_t PwmSetPolarity(DevHandle handle, uint8_t polarity); 177 int32_t PwmEnable(DevHandle handle); 188 int32_t PwmDisable(DevHandle handle); 201 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config); 214 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config);
|
H A D | pcie_if.h | 51 typedef int32_t (*PcieCallbackFunc)(DevHandle handle); 61 * @return Returns the device handle {@link DevHandle} of the PCIE controller if the operation is successful; 66 DevHandle PcieOpen(uint16_t busNum); 81 int32_t PcieRead(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len); 96 int32_t PcieWrite(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len); 111 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir); 123 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir); 135 int32_t PcieRegisterIrq(DevHandle handle, PcieCallbackFunc cb); 147 void PcieUnregisterIrq(DevHandle handle); 159 void PcieClose(DevHandle handl [all...] |
H A D | pin_if.h | 46 * @return Returns the pointer to the {@link DevHandle} of the pin controller which 51 DevHandle PinGet(const char *pinName); 79 void PinPut(DevHandle handle); 92 int32_t PinSetPull(DevHandle handle, enum PinPullType pullType); 105 int32_t PinGetPull(DevHandle handle, enum PinPullType *pullType); 118 int32_t PinSetStrength(DevHandle handle, uint32_t strength); 131 int32_t PinGetStrength(DevHandle handle, uint32_t *strength); 144 int32_t PinSetFunc(DevHandle handle, const char *funcName); 157 int32_t PinGetFunc(DevHandle handle, const char **funcName);
|
H A D | uart_if.h | 273 DevHandle UartOpen(uint32_t port); 285 void UartClose(DevHandle handle); 297 int32_t UartRead(DevHandle handle, uint8_t *data, uint32_t size); 309 int32_t UartWrite(DevHandle handle, uint8_t *data, uint32_t size); 320 int32_t UartGetBaud(DevHandle handle, uint32_t *baudRate); 331 int32_t UartSetBaud(DevHandle handle, uint32_t baudRate); 343 int32_t UartGetAttribute(DevHandle handle, struct UartAttribute *attribute); 356 int32_t UartSetAttribute(DevHandle handle, struct UartAttribute *attribute); 367 int32_t UartSetTransMode(DevHandle handle, enum UartTransMode mode); 374 int32_t UartBlockWrite(DevHandle handl [all...] |
H A D | mipi_dsi_if.h | 203 DevHandle MipiDsiOpen(uint8_t id); 212 void MipiDsiClose(DevHandle handle); 224 int32_t MipiDsiSetCfg(DevHandle handle, struct MipiCfg *cfg); 236 int32_t MipiDsiGetCfg(DevHandle handle, struct MipiCfg *cfg); 245 void MipiDsiSetLpMode(DevHandle handle); 254 void MipiDsiSetHsMode(DevHandle handle); 266 int32_t MipiDsiTx(DevHandle handle, struct DsiCmdDesc *cmd); 280 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out); 292 int32_t MipiDsiAttach(DevHandle handle, uint8_t *name); 304 int32_t MipiDsiSetDrvData(DevHandle handl [all...] |
H A D | timer_if.h | 32 DevHandle HwTimerOpen(const uint32_t number); 40 void HwTimerClose(DevHandle handle); 49 int32_t HwTimerStart(DevHandle handle); 58 int32_t HwTimerStop(DevHandle handle); 69 int32_t HwTimerSet(DevHandle handle, uint32_t useconds, TimerHandleCb cb); 79 int32_t HwTimerSetOnce(DevHandle handle, uint32_t useconds, TimerHandleCb cb); 90 int32_t HwTimerGet(DevHandle handle, uint32_t *useconds, bool *isPeriod);
|
H A D | emmc_if.h | 55 * @return Returns the device handle {@link DevHandle} of the EMMC controller if the operation is successful; 60 static inline DevHandle EmmcOpen(int16_t mmcBusNum) in EmmcOpen() 77 static inline void EmmcClose(DevHandle handle) in EmmcClose() 93 int32_t EmmcGetCid(DevHandle handle, uint8_t *cid, uint32_t size); 110 int32_t EmmcGetCardState(DevHandle handle, uint8_t *state, uint32_t size); 112 int32_t EmmcGetCardCsd(DevHandle handle, uint8_t *csd, uint32_t size); 114 int32_t EmmcGetCardInfo(DevHandle handle, uint8_t *cardInfo, uint32_t size);
|
H A D | mipi_csi_if.h | 372 DevHandle MipiCsiOpen(uint8_t id); 381 void MipiCsiClose(DevHandle handle); 395 int32_t MipiCsiSetComboDevAttr(DevHandle handle, ComboDevAttr *pAttr); 408 int32_t MipiCsiSetPhyCmvmode(DevHandle handle, uint8_t devno, PhyCmvMode cmvMode); 421 int32_t MipiCsiResetSensor(DevHandle handle, uint8_t snsResetSource); 434 int32_t MipiCsiUnresetSensor(DevHandle handle, uint8_t snsResetSource); 448 int32_t MipiCsiResetRx(DevHandle handle, uint8_t comboDev); 460 int32_t MipiCsiUnresetRx(DevHandle handle, uint8_t comboDev); 472 int32_t MipiCsiSetHsMode(DevHandle handle, LaneDivideMode laneDivideMode); 487 int32_t MipiCsiEnableClock(DevHandle handl [all...] |
H A D | can_if.h | 75 int32_t CanBusOpen(int32_t number, DevHandle *handle); 77 void CanBusClose(DevHandle handle); 79 int32_t CanBusSendMsg(DevHandle handle, const struct CanMsg *msg); 81 int32_t CanBusReadMsg(DevHandle handle, struct CanMsg *msg, uint32_t tms); 83 int32_t CanBusAddFilter(DevHandle handle, const struct CanFilter *filter); 85 int32_t CanBusDelFilter(DevHandle handle, const struct CanFilter *filter); 87 int32_t CanBusSetCfg(DevHandle handle, const struct CanConfig *cfg); 89 int32_t CanBusGetCfg(DevHandle handle, struct CanConfig *cfg); 91 int32_t CanBusGetState(DevHandle handle);
|
H A D | i2s_if.h | 183 * @return Returns the pointer to the {@link DevHandle} of the I2S controller if the operation is successful; 187 DevHandle I2sOpen(int16_t number); 199 void I2sClose(DevHandle handle); 200 void I2sEnable(DevHandle handle); 201 void I2sDisable(DevHandle handle); 202 int32_t I2sWrite(DevHandle handle, uint8_t *buf, uint32_t len, uint32_t *pWlen); 203 int32_t I2sRead(DevHandle handle, uint8_t *buf, uint32_t len, uint32_t *pRlen); 204 void I2sStartWrite(DevHandle handle); 205 void I2sStopWrite(DevHandle handle); 206 void I2sStartRead(DevHandle handl [all...] |
/drivers/peripheral/audio/supportlibs/interfaces/include/ |
H A D | audio_if_lib_render.h | 46 int32_t AudioOutputRenderOpen(const struct DevHandle *handle, 48 int32_t AudioOutputRenderHwParams(const struct DevHandle *handle, 50 int32_t AudioOutputRenderClose(const struct DevHandle *handle, 52 int32_t AudioOutputRenderPrepare(const struct DevHandle *handle, 54 int32_t AudioOutputRenderStart(const struct DevHandle *handle, 56 int32_t AudioOutputRenderGetMmapPosition(const struct DevHandle *handle, 58 int32_t AudioInterfaceLibModeRender(const struct DevHandle *handle, 60 int32_t AudioOutputRenderHwParams(const struct DevHandle *handle, 62 int32_t AudioOutputRenderWrite(const struct DevHandle *handle, 64 int32_t AudioOutputRenderStop(const struct DevHandle *handl [all...] |
H A D | audio_if_lib_capture.h | 45 int32_t AudioOutputCaptureOpen(const struct DevHandle *handle, 47 int32_t AudioOutputCapturePrepare(const struct DevHandle *handle, 49 int32_t AudioOutputCaptureStart(const struct DevHandle *handle, 51 int32_t AudioOutputCaptureClose(const struct DevHandle *handle, 53 int32_t AudioOutputCaptureGetMmapPosition(const struct DevHandle *handle, 55 int32_t AudioInterfaceLibModeCapture(const struct DevHandle *handle, 57 int32_t AudioOutputCaptureHwParams(const struct DevHandle *handle, 59 int32_t AudioOutputCaptureRead(const struct DevHandle *handle, 61 int32_t AudioOutputCaptureStop(const struct DevHandle *handle, 63 int32_t AudioOutputCaptureStartPrepare(const struct DevHandle *handl [all...] |
/drivers/hdf_core/framework/support/platform/src/mipi/ |
H A D | mipi_csi_if.c | 14 DevHandle MipiCsiOpen(uint8_t id) in MipiCsiOpen() 16 return (DevHandle)MipiCsiCntlrGet(id); in MipiCsiOpen() 19 void MipiCsiClose(DevHandle handle) in MipiCsiClose() 24 int32_t MipiCsiSetComboDevAttr(DevHandle handle, ComboDevAttr *pAttr) in MipiCsiSetComboDevAttr() 29 int32_t MipiCsiSetPhyCmvmode(DevHandle handle, uint8_t devno, PhyCmvMode cmvMode) in MipiCsiSetPhyCmvmode() 34 int32_t MipiCsiSetExtDataType(DevHandle handle, ExtDataType* dataType) in MipiCsiSetExtDataType() 39 int32_t MipiCsiSetHsMode(DevHandle handle, LaneDivideMode laneDivideMode) in MipiCsiSetHsMode() 44 int32_t MipiCsiEnableClock(DevHandle handle, uint8_t comboDev) in MipiCsiEnableClock() 49 int32_t MipiCsiDisableClock(DevHandle handle, uint8_t comboDev) in MipiCsiDisableClock() 54 int32_t MipiCsiResetRx(DevHandle handl [all...] |
H A D | mipi_dsi_if.c | 14 DevHandle MipiDsiOpen(uint8_t id) in MipiDsiOpen() 16 return (DevHandle)MipiDsiCntlrOpen(id); in MipiDsiOpen() 19 void MipiDsiClose(DevHandle handle) in MipiDsiClose() 24 int32_t MipiDsiSetCfg(DevHandle handle, struct MipiCfg *cfg) in MipiDsiSetCfg() 29 int32_t MipiDsiGetCfg(DevHandle handle, struct MipiCfg *cfg) in MipiDsiGetCfg() 34 void MipiDsiSetLpMode(DevHandle handle) in MipiDsiSetLpMode() 39 void MipiDsiSetHsMode(DevHandle handle) in MipiDsiSetHsMode() 44 int32_t MipiDsiTx(DevHandle handle, struct DsiCmdDesc *cmd) in MipiDsiTx() 49 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out) in MipiDsiRx() 54 int32_t MipiDsiAttach(DevHandle handl [all...] |
/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_if.c | 13 int32_t CanBusOpen(int32_t number, DevHandle *handle) in CanBusOpen() 20 *handle = (DevHandle)client; in CanBusOpen() 25 void CanBusClose(DevHandle handle) in CanBusClose() 30 int32_t CanBusSendMsg(DevHandle handle, const struct CanMsg *msg) in CanBusSendMsg() 35 int32_t CanBusReadMsg(DevHandle handle, struct CanMsg *msg, uint32_t tms) in CanBusReadMsg() 40 int32_t CanBusAddFilter(DevHandle handle, const struct CanFilter *filter) in CanBusAddFilter() 45 int32_t CanBusDelFilter(DevHandle handle, const struct CanFilter *filter) in CanBusDelFilter() 50 int32_t CanBusSetCfg(DevHandle handle, const struct CanConfig *cfg) in CanBusSetCfg() 55 int32_t CanBusGetCfg(DevHandle handle, struct CanConfig *cfg) in CanBusGetCfg() 60 int32_t CanBusGetState(DevHandle handl [all...] |
/drivers/hdf_core/framework/support/platform/src/rtc/ |
H A D | rtc_if.c | 19 DevHandle RtcOpen(void) in RtcOpen() 29 return (DevHandle)host; in RtcOpen() 32 void RtcClose(DevHandle handle) in RtcClose() 37 int32_t RtcReadTime(DevHandle handle, struct RtcTime *time) in RtcReadTime() 47 int32_t RtcWriteTime(DevHandle handle, const struct RtcTime *time) in RtcWriteTime() 62 int32_t RtcReadAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, struct RtcTime *time) in RtcReadAlarm() 72 int32_t RtcWriteAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time) in RtcWriteAlarm() 87 int32_t RtcRegisterAlarmCallback(DevHandle handle, enum RtcAlarmIndex alarmIndex, RtcAlarmCallback cb) in RtcRegisterAlarmCallback() 97 int32_t RtcAlarmInterruptEnable(DevHandle handle, enum RtcAlarmIndex alarmIndex, uint8_t enable) in RtcAlarmInterruptEnable() 107 int32_t RtcGetFreq(DevHandle handl [all...] |
/drivers/hdf_core/framework/support/platform/src/uart/ |
H A D | uart_if.c | 41 DevHandle UartOpen(uint32_t port)
in UartOpen() 57 return (DevHandle)handle;
in UartOpen() 60 void UartClose(DevHandle handle)
in UartClose() 74 int32_t UartRead(DevHandle handle, uint8_t *data, uint32_t size)
in UartRead() 79 int32_t UartWrite(DevHandle handle, uint8_t *data, uint32_t size)
in UartWrite() 84 int32_t UartGetBaud(DevHandle handle, uint32_t *baudRate)
in UartGetBaud() 89 int32_t UartSetBaud(DevHandle handle, uint32_t baudRate)
in UartSetBaud() 94 int32_t UartGetAttribute(DevHandle handle, struct UartAttribute *attribute)
in UartGetAttribute() 99 int32_t UartSetAttribute(DevHandle handle, struct UartAttribute *attribute)
in UartSetAttribute() 104 int32_t UartSetTransMode(DevHandle handl [all...] |
/drivers/hdf_core/framework/support/platform/src/i3c/ |
H A D | i3c_if.c | 15 DevHandle I3cOpen(int16_t number) in I3cOpen() 17 return (DevHandle)I3cCntlrGet(number); in I3cOpen() 20 void I3cClose(DevHandle handle) in I3cClose() 25 int32_t I3cTransfer(DevHandle handle, struct I3cMsg *msgs, int16_t count, enum TransMode mode) in I3cTransfer() 56 int32_t I3cSetConfig(DevHandle handle, struct I3cConfig *config) in I3cSetConfig() 61 int32_t I3cGetConfig(DevHandle handle, struct I3cConfig *config) in I3cGetConfig() 66 int32_t I3cRequestIbi(DevHandle handle, uint16_t addr, I3cIbiFunc func, uint32_t payload) in I3cRequestIbi() 71 int32_t I3cFreeIbi(DevHandle handle, uint16_t addr) in I3cFreeIbi()
|
/drivers/hdf_core/framework/support/platform/src/pcie/ |
H A D | pcie_if.c | 34 DevHandle PcieOpen(uint16_t busNum) in PcieOpen() 36 return (DevHandle)PcieCntlrObjGet(busNum); in PcieOpen() 39 int32_t PcieRead(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len) in PcieRead() 44 int32_t PcieWrite(DevHandle handle, uint32_t mode, uint32_t pos, uint8_t *data, uint32_t len) in PcieWrite() 49 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() 54 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaUnmap() 59 int32_t PcieRegisterIrq(DevHandle handle, PcieCallbackFunc cb) in PcieRegisterIrq() 64 void PcieUnregisterIrq(DevHandle handle) in PcieUnregisterIrq() 69 void PcieClose(DevHandle handle) in PcieClose()
|
/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_if.c | 15 DevHandle PinGet(const char *pinName) in PinGet() 17 return (DevHandle)PinCntlrGetPinDescByName(pinName); in PinGet() 20 void PinPut(DevHandle handle) in PinPut() 29 int32_t PinSetPull(DevHandle handle, enum PinPullType pullType) in PinSetPull() 42 int32_t PinGetPull(DevHandle handle, enum PinPullType *pullType) in PinGetPull() 55 int32_t PinSetStrength(DevHandle handle, uint32_t strength) in PinSetStrength() 68 int32_t PinGetStrength(DevHandle handle, uint32_t *strength) in PinGetStrength() 81 int32_t PinSetFunc(DevHandle handle, const char *funcName) in PinSetFunc() 94 int32_t PinGetFunc(DevHandle handle, const char **funcName) in PinGetFunc()
|