RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Functions
shell-wait-for-input.c File Reference

Shell Wait for Input Implementation. More...

#include <rtems/shell.h>
#include <termios.h>
#include <unistd.h>

Functions

rtems_status_code rtems_shell_wait_for_explicit_input (int fd, int timeout_in_seconds, rtems_shell_wait_for_input_notification notification, void *notification_arg, int desired_input)
 Waits for explicit input.
 
rtems_status_code rtems_shell_wait_for_input (int fd, int timeout_in_seconds, rtems_shell_wait_for_input_notification notification, void *notification_arg)
 Waits for input.
 

Detailed Description

Shell Wait for Input Implementation.

Function Documentation

◆ rtems_shell_wait_for_explicit_input()

rtems_status_code rtems_shell_wait_for_explicit_input ( int  fd,
int  timeout_in_seconds,
rtems_shell_wait_for_input_notification  notification,
void *  notification_arg,
int  desired_input 
)

Waits for explicit input.

Parameters
desired_inputAn explicit unsigned character to wait for or -1 to accept any input.
Return values
RTEMS_SUCCESSFULInput detected.
RTEMS_TIMEOUTTimeout expired.
RTEMS_UNSATISFIEDCannot change or restore termios attributes.

◆ rtems_shell_wait_for_input()

rtems_status_code rtems_shell_wait_for_input ( int  fd,
int  timeout_in_seconds,
rtems_shell_wait_for_input_notification  notification,
void *  notification_arg 
)

Waits for input.

Return values
RTEMS_SUCCESSFULInput detected.
RTEMS_TIMEOUTTimeout expired.
RTEMS_UNSATISFIEDCannot change or restore termios attributes.