crash.software
Projects
Pull Requests
Issues
Builds
CatSniffer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
CatSniffer
Files
🤬
Sign In
e0e16f8a
ROOT
/
firmware
/
ot-cc13x2-cc26x2
/
openthread
/
tools
/
spi-hdlc-adapter
/
spi-hdlc-adapter.c
Search
History
2051 lines
|
UTF-8
|
62 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_GNU_SOURCE
HAVE_CONFIG_H
HAVE_EXECINFO_H
HAVE_PTY_H
HAVE_UTIL_H
HAVE_OPENPTY
SPI_HDLC_VERSION
MAX_FRAME_SIZE
HEADER_LEN
SPI_HEADER_RESET_FLAG
SPI_HEADER_CRC_FLAG
SPI_HEADER_PATTERN_VALUE
SPI_HEADER_PATTERN_MASK
EXIT_QUIT
MSEC_PER_SEC
USEC_PER_MSEC
USEC_PER_SEC
SPI_POLL_PERIOD_MSEC
IMMEDIATE_RETRY_COUNT
FAST_RETRY_COUNT
IMMEDIATE_RETRY_TIMEOUT_MSEC
FAST_RETRY_TIMEOUT_MSEC
SLOW_RETRY_TIMEOUT_MSEC
GPIO_INT_ASSERT_STATE
GPIO_RES_ASSERT_STATE
SPI_RX_ALIGN_ALLOWANCE_MAX
SOCKET_DEBUG_BYTES_PER_LINE
AUTO_PRINT_BACKTRACE
AUTO_PRINT_BACKTRACE_STACK_DEPTH
IGNORE_RETURN_VALUE
(
s
)
HDLC_BYTE_FLAG
HDLC_BYTE_ESC
HDLC_BYTE_XON
HDLC_BYTE_XOFF
HDLC_BYTE_SPECIAL
HDLC_ESCAPE_XFORM
kHdlcResetSignal
:
const uint8_t[]
kHdlcCrcCheckValue
:
const uint16_t
kHdlcCrcResetValue
:
const uint16_t
(anonymous)
MODE_STDIO
MODE_PTY
sMode
:
int
sLogLevel
:
int
sSpiDevFd
:
int
sResGpioValueFd
:
int
sIntGpioValueFd
:
int
sHdlcInputFd
:
int
sHdlcOutputFd
:
int
sSpiSpeed
:
int
sSpiMode
:
uint8_t
sSpiCsDelay
:
int
sSpiResetDelay
:
int
sSpiRxPayloadSize
:
uint16_t
sSpiRxFrameBuffer
:
uint8_t[MAX_FRAME_SIZE + SPI_RX_ALIGN_ALLOWANCE_MAX]
sSpiTxPayloadSize
:
uint16_t
sSpiTxIsReady
:
bool
sSpiTxRefusedCount
:
int
sSpiTxFrameBuffer
:
uint8_t[MAX_FRAME_SIZE + SPI_RX_ALIGN_ALLOWANCE_MAX]
sSpiRxAlignAllowance
:
int
sSpiSmallPacketSize
:
int
sSlaveDidReset
:
bool
sCaughtSignal
:
int
sUseRawFrames
:
bool
sMTU
:
int
sRet
:
int
sDumpStats
:
bool
sPreviousHandlerForSIGINT
:
sig_t
sPreviousHandlerForSIGTERM
:
sig_t
sSlaveResetCount
:
uint64_t
sSpiFrameCount
:
uint64_t
sSpiValidFrameCount
:
uint64_t
sSpiGarbageFrameCount
:
uint64_t
sSpiDuplexFrameCount
:
uint64_t
sSpiUnresponsiveFrameCount
:
uint64_t
sHdlcRxFrameByteCount
:
uint64_t
sHdlcTxFrameByteCount
:
uint64_t
sHdlcRxFrameCount
:
uint64_t
sHdlcTxFrameCount
:
uint64_t
sHdlcRxBadCrcCount
:
uint64_t
signal_SIGINT
(
int
)
{...}
:
void
signal_SIGTERM
(
int
)
{...}
:
void
signal_SIGHUP
(
int
)
{...}
:
void
signal_dumpstats
(
int
)
{...}
:
void
signal_clearstats
(
int
)
{...}
:
void
log_debug_buffer
(
const char*,const uint8_t*,int,bool
)
{...}
:
void
spi_header_set_flag_byte
(
uint8_t*,uint8_t
)
{...}
:
void
spi_header_set_accept_len
(
uint8_t*,uint16_t
)
{...}
:
void
spi_header_set_data_len
(
uint8_t*,uint16_t
)
{...}
:
void
spi_header_get_flag_byte
(
const uint8_t*
)
{...}
:
uint8_t
spi_header_get_accept_len
(
const uint8_t*
)
{...}
:
uint16_t
spi_header_get_data_len
(
const uint8_t*
)
{...}
:
uint16_t
get_real_rx_frame_start
(
void
)
{...}
:
uint8_t*
do_spi_xfer
(
int
)
{...}
:
int
debug_spi_header
(
const char*,bool
)
{...}
:
void
push_pull_spi
(
void
)
{...}
:
int
check_and_clear_interrupt
(
void
)
{...}
:
bool
hdlc_crc16
(
uint16_t,uint8_t
)
{...}
:
uint16_t
hdlc_byte_needs_escape
(
uint8_t
)
{...}
:
bool
push_hdlc
(
void
)
{...}
:
int
pull_hdlc
(
void
)
{...}
:
int
push_raw
(
void
)
{...}
:
int
pull_raw
(
void
)
{...}
:
int
update_spi_mode
(
int
)
{...}
:
bool
update_spi_speed
(
int
)
{...}
:
bool
setup_spi_dev
(
const char*
)
{...}
:
bool
setup_res_gpio
(
const char*
)
{...}
:
bool
trigger_reset
(
void
)
{...}
:
void
setup_int_gpio
(
const char*
)
{...}
:
bool
print_version
(
void
)
{...}
:
void
print_help
(
void
)
{...}
:
void
log_level_to_str
(
int
)
{...}
:
const char*
main
(
int,char*[]
)
{...}
:
int
All occurrences
Please wait...
Page is in error, reload to recover