Lines Matching +full:data +full:- +full:timeout
4 * Text-based command handler implementation for modem context driver.
10 * SPDX-License-Identifier: Apache-2.0
25 static int name_(struct modem_cmd_handler_data *data, uint16_t len, \
30 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
40 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
52 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
75 int (*func)(struct modem_cmd_handler_data *data, uint16_t len,
122 /* user data */
129 * @param data: command handler data reference
133 int modem_cmd_handler_get_error(struct modem_cmd_handler_data *data);
138 * @param data: command handler data reference
143 int modem_cmd_handler_set_error(struct modem_cmd_handler_data *data,
149 * @param data: handler data to use
156 int modem_cmd_handler_update_cmds(struct modem_cmd_handler_data *data,
174 * @param timeout: timeout of command
183 struct k_sem *sem, k_timeout_t timeout, int flags);
194 * @param timeout: timeout of command
203 k_timeout_t timeout) in modem_cmd_send_nolock() argument
206 handler_cmds_len, buf, sem, timeout, in modem_cmd_send_nolock()
219 * @param timeout: timeout of command
227 struct k_sem *sem, k_timeout_t timeout) in modem_cmd_send() argument
230 handler_cmds_len, buf, sem, timeout, 0); in modem_cmd_send()
241 * @param timeout: timeout of command
248 struct k_sem *sem, k_timeout_t timeout);
258 * @param timeout: timeout of command
266 k_timeout_t timeout);
272 * command handler data context. The struct is initialized and then passed
278 * @param buf_pool Initialized buffer pool used to store incoming data
279 * @param alloc_timeout Timeout for allocating data in buffer pool
281 * @param user_data Free to use data which can be retrieved from within command handlers
304 * incoming data is processed.
306 * @note All arguments passed to this function, including the referenced data
310 * @param data Command handler data to use
313 * @return -EINVAL if any argument is invalid
317 struct modem_cmd_handler_data *data,
323 * This is semaphore-based rather than mutex based, which means there's no
325 * when one needs to prevent threads from sending UART data to the modem for an
329 * @param timeout: give up after timeout
334 k_timeout_t timeout);
344 * @brief Process incoming data
346 * @details This function will process any data available from the interface
355 * @param iface The interface which receives incoming data
360 handler->process(handler, iface); in modem_cmd_handler_process()