zephyr/drivers/modem
Tobias Svehagen 990ab00e30 drivers: modem: Add support for commands that don't have a line ending
Some commands need to be processed before a "\r\n" is available and
there might also be commands that have "\r\n" as data but doesn't mean
the end of the command.

To solve this a MODEM_CMD_DIRECT has been added. cmd_handler_process()
will look for matching direct commands before checking if a whole line
is available for matching the normal commands.

A direct command can return either -EAGAIN, meaning that more data is
needed or it will return the number of bytes to skip forward, ie the
length of the command that was handled.

Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
2020-03-11 23:48:06 +02:00
..
CMakeLists.txt drivers: modem: Support GSM modems and PPP 2020-01-28 12:44:17 +02:00
Kconfig drivers: modem: Support GSM modems and PPP 2020-01-28 12:44:17 +02:00
Kconfig.gsm drivers: modem: gsm: Add setting of MCC number 2020-02-10 12:32:24 +02:00
Kconfig.ublox-sara-r4 drivers: modem: sara-r4: support for network indication on SARA modems 2020-02-10 12:29:41 +02:00
Kconfig.wncm14a2a
gsm_ppp.c drivers: modem: gsm: Command handlers should return value 2020-02-10 19:52:33 +02:00
modem_cmd_handler.c drivers: modem: Add support for commands that don't have a line ending 2020-03-11 23:48:06 +02:00
modem_cmd_handler.h drivers: modem: Add support for commands that don't have a line ending 2020-03-11 23:48:06 +02:00
modem_context.c
modem_context.h drivers: modem: Fix gpio compile errors with modem shell 2020-02-06 12:33:20 +02:00
modem_iface_uart.c
modem_iface_uart.h
modem_pin.c drivers: modem: Remove invalid comparison 2020-03-10 13:03:03 +02:00
modem_receiver.c
modem_receiver.h
modem_shell.c
modem_socket.c drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
modem_socket.h drivers: modem: socket: add is_connected field to modem_socket 2020-02-10 12:29:41 +02:00
ublox-sara-r4.c drivers: modem: ublox-sara-r4: convert to DT_INST defines 2020-03-11 07:59:38 -06:00
wncm14a2a.c drivers: modem: wncm14a2a: Convert to the new GPIO API 2020-02-05 12:00:36 +01:00