Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 65) sorted by relevance

123

/hal_ti-2.7.6/simplelink/kernel/zephyr/dpl/
DSemaphoreP_zephyr.c65 SemaphoreP_Params *params) in SemaphoreP_create() argument
70 if (params) { in SemaphoreP_create()
71 limit = (params->mode == SemaphoreP_Mode_BINARY) ? in SemaphoreP_create()
85 SemaphoreP_Params params; in SemaphoreP_createBinary() local
87 SemaphoreP_Params_init(&params); in SemaphoreP_createBinary()
88 params.mode = SemaphoreP_Mode_BINARY; in SemaphoreP_createBinary()
90 return (SemaphoreP_create(count, &params)); in SemaphoreP_createBinary()
101 void SemaphoreP_Params_init(SemaphoreP_Params *params) in SemaphoreP_Params_init() argument
103 params->mode = SemaphoreP_Mode_COUNTING; in SemaphoreP_Params_init()
104 params->callback = NULL; in SemaphoreP_Params_init()
[all …]
DSwiP_zephyr.c36 SwiP_Params params; member
79 void SwiP_Params_init(SwiP_Params *params) in SwiP_Params_init() argument
82 *params = SwiP_defaultParams; in SwiP_Params_init()
89 SwiP_Params *params) in SwiP_construct() argument
119 if (params == NULL) { in SwiP_construct()
120 params = (SwiP_Params *)&SwiP_defaultParams; in SwiP_construct()
123 if (params->priority == (~0)) { in SwiP_construct()
127 priority = params->priority; in SwiP_construct()
135 swi->params = *params; in SwiP_construct()
136 swi->params.priority = priority; in SwiP_construct()
[all …]
DClockP_zephyr.c44 uint32_t timeout, ClockP_Params *params) in ClockP_construct() argument
52 if (params == NULL) { in ClockP_construct()
53 params = &ClockP_defaultParams; in ClockP_construct()
57 obj->arg = params->arg; in ClockP_construct()
58 obj->period = params->period * ClockP_getSystemTickPeriod() / 1000; in ClockP_construct()
65 if (params->startFlag) { in ClockP_construct()
89 void ClockP_Params_init(ClockP_Params *params) in ClockP_Params_init() argument
91 params->arg = 0; in ClockP_Params_init()
92 params->startFlag = false; in ClockP_Params_init()
93 params->period = 0; in ClockP_Params_init()
DHwiP_zephyr.c58 HwiP_Handle HwiP_create(int interruptNum, HwiP_Fxn hwiFxn, HwiP_Params *params) in HwiP_create() argument
64 if (params) { in HwiP_create()
65 priority = params->priority; in HwiP_create()
66 arg = params->arg; in HwiP_create()
152 HwiP_Fxn hwiFxn, HwiP_Params *params) in HwiP_construct() argument
162 if (params) { in HwiP_construct()
163 priority = params->priority; in HwiP_construct()
164 arg = params->arg; in HwiP_construct()
246 void HwiP_Params_init(HwiP_Params *params) in HwiP_Params_init() argument
248 params->arg = 0; in HwiP_Params_init()
[all …]
DMutexP_zephyr.c50 MutexP_Handle MutexP_create(MutexP_Params *params) in MutexP_create() argument
54 ARG_UNUSED(params); in MutexP_create()
85 void MutexP_Params_init(MutexP_Params *params) in MutexP_Params_init() argument
87 params->callback = NULL; in MutexP_Params_init()
/hal_ti-2.7.6/simplelink/source/ti/drivers/
DCapture.c93 Capture_Handle Capture_open(uint_least8_t index, Capture_Params *params) in Capture_open() argument
100 if (params == NULL) { in Capture_open()
101 params = (Capture_Params *) &defaultParams; in Capture_open()
106 handle = handle->fxnTablePtr->openFxn(handle, params); in Capture_open()
115 void Capture_Params_init(Capture_Params *params) in Capture_Params_init() argument
117 *params = defaultParams; in Capture_Params_init()
DCamera.c106 Camera_Handle Camera_open(uint_least8_t index, Camera_Params *params) in Camera_open() argument
113 if (params == NULL) { in Camera_open()
114 params = (Camera_Params *)&Camera_defaultParams; in Camera_open()
119 handle = handle->fxnTablePtr->openFxn(handle, params); in Camera_open()
128 void Camera_Params_init(Camera_Params *params) in Camera_Params_init() argument
130 *params = Camera_defaultParams; in Camera_Params_init()
DADC.c111 ADC_Handle ADC_open(uint_least8_t index, ADC_Params *params) in ADC_open() argument
117 if (params == NULL) { in ADC_open()
118 params = (ADC_Params *) &ADC_defaultParams; in ADC_open()
123 handle = handle->fxnTablePtr->openFxn(handle, params); in ADC_open()
132 void ADC_Params_init(ADC_Params *params) in ADC_Params_init() argument
134 *params = ADC_defaultParams; in ADC_Params_init()
DSPI.c102 SPI_Handle SPI_open(uint_least8_t index, SPI_Params *params) in SPI_open() argument
108 if (params == NULL) { in SPI_open()
109 params = (SPI_Params *) &SPI_defaultParams; in SPI_open()
114 handle = handle->fxnTablePtr->openFxn(handle, params); in SPI_open()
123 void SPI_Params_init(SPI_Params *params) in SPI_Params_init() argument
125 *params = SPI_defaultParams; in SPI_Params_init()
DWatchdog.c106 Watchdog_Handle Watchdog_open(uint_least8_t index, Watchdog_Params *params) in Watchdog_open() argument
113 if (params == NULL) { in Watchdog_open()
114 params = (Watchdog_Params *) &Watchdog_defaultParams; in Watchdog_open()
118 handle = handle->fxnTablePtr->watchdogOpen(handle, params); in Watchdog_open()
127 void Watchdog_Params_init(Watchdog_Params *params) in Watchdog_Params_init() argument
129 *params = Watchdog_defaultParams; in Watchdog_Params_init()
DI2C.c106 I2C_Handle I2C_open(uint_least8_t index, I2C_Params *params) in I2C_open() argument
112 if (params == NULL) { in I2C_open()
113 params = (I2C_Params *) &I2C_defaultParams; in I2C_open()
118 handle = handle->fxnTablePtr->openFxn(handle, params); in I2C_open()
127 void I2C_Params_init(I2C_Params *params) in I2C_Params_init() argument
129 *params = I2C_defaultParams; in I2C_Params_init()
DTimer.c101 Timer_Handle Timer_open(uint_least8_t index, Timer_Params *params) in Timer_open() argument
108 if (params == NULL) { in Timer_open()
109 params = (Timer_Params *) &defaultParams; in Timer_open()
114 handle = handle->fxnTablePtr->openFxn(handle, params); in Timer_open()
123 void Timer_Params_init(Timer_Params *params) in Timer_Params_init() argument
125 *params = defaultParams; in Timer_Params_init()
DSD.c115 SD_Handle SD_open(uint_least8_t index, SD_Params *params) in SD_open() argument
122 if (params == NULL) { in SD_open()
123 params = (SD_Params *) &SD_defaultParams; in SD_open()
128 handle = handle->fxnTablePtr->openFxn(handle, params); in SD_open()
137 void SD_Params_init(SD_Params *params) in SD_Params_init() argument
139 *params = SD_defaultParams; in SD_Params_init()
DNVS.c112 NVS_Handle NVS_open(uint_least8_t index, NVS_Params *params) in NVS_open() argument
122 if (params == NULL) { in NVS_open()
124 params = (NVS_Params *)&NVS_defaultParams; in NVS_open()
126 handle = NVS_config[index].fxnTablePtr->openFxn(index, params); in NVS_open()
135 void NVS_Params_init(NVS_Params *params) in NVS_Params_init() argument
137 *params = NVS_defaultParams; in NVS_Params_init()
DPWM.c99 PWM_Handle PWM_open(uint_least8_t index, PWM_Params *params) in PWM_open() argument
105 if (params == NULL) { in PWM_open()
106 params = (PWM_Params *) &PWM_defaultParams; in PWM_open()
112 handle = handle->fxnTablePtr->openFxn(handle, params); in PWM_open()
121 void PWM_Params_init(PWM_Params *params) in PWM_Params_init() argument
123 *params = PWM_defaultParams; in PWM_Params_init()
DUART.c109 UART_Handle UART_open(uint_least8_t index, UART_Params *params) in UART_open() argument
115 if (params == NULL) { in UART_open()
116 params = (UART_Params *) &UART_defaultParams; in UART_open()
121 handle = handle->fxnTablePtr->openFxn(handle, params); in UART_open()
130 void UART_Params_init(UART_Params *params) in UART_Params_init() argument
132 *params = UART_defaultParams; in UART_Params_init()
DUART2.c82 UART2_Params *params) in UART2_open() argument
88 if (params == NULL) { in UART2_open()
89 params = (UART2_Params *) &UART2_defaultParams; in UART2_open()
93 handle = UART2_config[index].fxnTablePtr->openFxn(index, params); in UART2_open()
102 void UART2_Params_init(UART2_Params *params) in UART2_Params_init() argument
104 *params = UART2_defaultParams; in UART2_Params_init()
/hal_ti-2.7.6/simplelink/source/ti/drivers/apps/
DLED.c162 LED_Handle LED_open(uint_least8_t ledIndex, LED_Params *params) in LED_open() argument
181 if(params == NULL) in LED_open()
183 params = (LED_Params *)&LED_defaultParams; in LED_open()
200 pwmParams.periodValue = params->pwmPeriod; in LED_open()
214 if(params->setState != LED_STATE_OFF) in LED_open()
217 params->pwmPeriod * params->brightness / 100); in LED_open()
246 obj->pwmPeriod = params->pwmPeriod; in LED_open()
247 obj->brightness = params->brightness; in LED_open()
250 switch (params->setState) in LED_open()
262 (params->blinkPeriod)/2, in LED_open()
[all …]
/hal_ti-2.7.6/simplelink/source/ti/drivers/i2s/
DI2SCC32XX.c129 static bool initObject(I2S_Handle handle, I2S_Params *params);
181 I2S_Handle I2S_open(uint_least8_t index, I2S_Params *params) { in I2S_open() argument
199 else if (!initObject(handle, params)) { in I2S_open()
946 static bool initObject(I2S_Handle handle, I2S_Params *params) { in initObject() argument
961 object->moduleRole = params->moduleRole; in initObject()
962 object->invertWS = params->invertWS; in initObject()
963 object->samplingEdge = params->samplingEdge; in initObject()
964 object->isMSBFirst = params->isMSBFirst; in initObject()
965 object->samplingFrequency = params->samplingFrequency; in initObject()
966 object->dataShift = (params->trueI2sFormat)? DATA_SHIFT_1 : DATA_SHIFT_NONE; in initObject()
[all …]
/hal_ti-2.7.6/simplelink/source/ti/drivers/camera/
DCameraCC32XXDMA.c74 Camera_Params *params);
261 Camera_Handle CameraCC32XXDMA_open(Camera_Handle handle, Camera_Params *params) in CameraCC32XXDMA_open() argument
275 DebugP_assert((params->captureTimeout != 0)); in CameraCC32XXDMA_open()
278 DebugP_assert((params->captureMode != Camera_MODE_CALLBACK) || in CameraCC32XXDMA_open()
279 (params->captureCallback != NULL)); in CameraCC32XXDMA_open()
295 object->operationMode = params->captureMode; in CameraCC32XXDMA_open()
296 object->captureCallback = params->captureCallback; in CameraCC32XXDMA_open()
297 object->captureTimeout = params->captureTimeout; in CameraCC32XXDMA_open()
346 if (params->hsyncPolarity == Camera_HSYNC_POLARITY_HIGH) { in CameraCC32XXDMA_open()
353 if (params->vsyncPolarity == Camera_VSYNC_POLARITY_HIGH) { in CameraCC32XXDMA_open()
[all …]
/hal_ti-2.7.6/simplelink/source/ti/drivers/net/wifi/porting/
Dcc_pal.c452 MutexP_Params params; in Mutex_create_handle() local
454 MutexP_Params_init(&params); in Mutex_create_handle()
456 params.callback = tiDriverSpawnCallback; in Mutex_create_handle()
458 (*(pMutexHandle)) = MutexP_create(&params); in Mutex_create_handle()
489 SemaphoreP_Params params; in SemaphoreP_create_handle() local
491 SemaphoreP_Params_init(&params); in SemaphoreP_create_handle()
493 params.mode = SemaphoreP_Mode_BINARY; in SemaphoreP_create_handle()
495 params.callback = tiDriverSpawnCallback; in SemaphoreP_create_handle()
497 (*(pSemHandle)) = SemaphoreP_create(1, &params); in SemaphoreP_create_handle()
/hal_ti-2.7.6/simplelink/source/ti/drivers/dpl/
DMutexP.h131 MutexP_Params *params);
152 extern MutexP_Handle MutexP_create(MutexP_Params *params);
169 extern void MutexP_Params_init(MutexP_Params *params);
/hal_ti-2.7.6/simplelink/source/ti/drivers/uart/
DUARTCC32XXDMA.c79 UART_Handle UARTCC32XXDMA_open(UART_Handle handle, UART_Params *params);
254 UART_Handle UARTCC32XXDMA_open(UART_Handle handle, UART_Params *params) in UARTCC32XXDMA_open() argument
266 DebugP_assert((params->writeTimeout != 0) && (params->readTimeout != 0)); in UARTCC32XXDMA_open()
269 DebugP_assert((params->readMode != UART_MODE_CALLBACK) || in UARTCC32XXDMA_open()
270 (params->readCallback != NULL)); in UARTCC32XXDMA_open()
271 DebugP_assert((params->writeMode != UART_MODE_CALLBACK) || in UARTCC32XXDMA_open()
272 (params->writeCallback != NULL)); in UARTCC32XXDMA_open()
311 object->readMode = params->readMode; in UARTCC32XXDMA_open()
312 object->writeMode = params->writeMode; in UARTCC32XXDMA_open()
313 object->readTimeout = params->readTimeout; in UARTCC32XXDMA_open()
[all …]
/hal_ti-2.7.6/simplelink/source/ti/drivers/timer/
DTimerCC32XX.c69 Timer_Handle TimerCC32XX_open(Timer_Handle handle, Timer_Params *params);
401 Timer_Handle TimerCC32XX_open(Timer_Handle handle, Timer_Params *params) in TimerCC32XX_open() argument
410 if (((params->timerMode == Timer_ONESHOT_CALLBACK || in TimerCC32XX_open()
411 params->timerMode == Timer_CONTINUOUS_CALLBACK) && in TimerCC32XX_open()
412 params->timerCallback == NULL) || in TimerCC32XX_open()
413 params->period == 0) { in TimerCC32XX_open()
427 object->mode = params->timerMode; in TimerCC32XX_open()
429 object->callBack = params->timerCallback; in TimerCC32XX_open()
430 object->period = params->period; in TimerCC32XX_open()
460 if (params->timerMode == Timer_ONESHOT_BLOCKING) { in TimerCC32XX_open()
[all …]
/hal_ti-2.7.6/simplelink/source/ti/drivers/capture/
DCaptureCC32XX.c64 Capture_Handle CaptureCC32XX_open(Capture_Handle handle, Capture_Params *params);
191 Capture_Handle CaptureCC32XX_open(Capture_Handle handle, Capture_Params *params) in CaptureCC32XX_open() argument
199 if (params == NULL || in CaptureCC32XX_open()
200 params->callbackFxn == NULL) { in CaptureCC32XX_open()
206 if (params->mode == Capture_RISING_EDGE) { in CaptureCC32XX_open()
210 else if (params->mode == Capture_FALLING_EDGE) { in CaptureCC32XX_open()
214 else if (params->mode == Capture_ANY_EDGE) { in CaptureCC32XX_open()
255 object->callBack = params->callbackFxn; in CaptureCC32XX_open()
256 object->periodUnits = params->periodUnit; in CaptureCC32XX_open()

123