MCPcopy Create free account

hub / github.com/antirez/dump1090 / functions

Functions85 in github.com/antirez/dump1090

↓ 15 callersFunctionanetSetError
anet.c:48
↓ 7 callersFunctioncprNLFunction
The NL function uses the precomputed table from 1090-WP-9-14 */
dump1090.c:1869
↓ 7 callersFunctiondumpRawMessage
This is a wrapper for dumpMagnitudeVector() that also show the message * in hex format with an additional description. * * descr is the additional
dump1090.c:633
↓ 6 callersFunctioncprModFunction
Always positive MOD operation, used for CPR decoding. */
dump1090.c:1862
↓ 6 callersFunctionscaleSample
Scale a sample value by a fixed-point factor, clamping to avoid overflow. * The scale is in 16384ths (so 16384 = 1.0, 32768 = 2.0, etc). */
dump1090.c:1473
↓ 5 callersFunctionmodesChecksum
Compute the CRC syndrome of a Mode S message. * * This function computes the CRC of the data portion (excluding the last * 24 bits which are the tr
dump1090.c:733
↓ 4 callersFunctionanetCreateSocket
anet.c:126
↓ 4 callersFunctionanetNonBlock
anet.c:58
↓ 4 callersFunctioncprNFunction
dump1090.c:1932
↓ 4 callersFunctionmstime
dump1090.c:287
↓ 3 callersFunctionmodesFreeClient
On error free the client, collect the structure, adjust maxfd if needed. */
dump1090.c:2340
↓ 3 callersFunctionmodesMessageLenByType
Given the Downlink Format (DF) of the message, return the message length * in bits. */
dump1090.c:746
↓ 2 callersFunctionICAOAddressWasRecentlySeen
Returns 1 if the specified ICAO address was seen in a DF format with * proper checksum (not xored with address) no more than * MODES_ICAO_CACHE_TTL
dump1090.c:919
↓ 2 callersFunctionICAOCacheHashAddress
Hash the ICAO address to index our cache of MODES_ICAO_CACHE_LEN * elements, that is assumed to be a power of two. */
dump1090.c:898
↓ 2 callersFunctionanetGenericAccept
anet.c:315
↓ 2 callersFunctionanetListen
anet.c:257
↓ 2 callersFunctionanetTcpGenericConnect
anet.c:144
↓ 2 callersFunctionanetUnixGenericConnect
anet.c:191
↓ 2 callersFunctionbackgroundTasks
This function is called a few times every second by main in order to * perform tasks we need to do continuously, like accepting new clients * from t
dump1090.c:2831
↓ 2 callersFunctioncprDlonFunction
dump1090.c:1938
↓ 2 callersFunctiondecodeModesMessage
Decode a raw Mode S message demodulated as a stream of bytes by * detectModeS(), and split it into fields populating a modesMessage * structure. */
dump1090.c:1091
↓ 2 callersFunctiondecodeMovementField
Decode ground speed from surface movement field. * Returns speed in knots, or -1 if speed is not available. */
dump1090.c:2056
↓ 2 callersFunctionfixBitErrors
Given a received message, compute its syndrome and look it up in the * precomputed table. If we find a match, we know the exact bit positions * that
dump1090.c:854
↓ 2 callersFunctiongetMEDescription
dump1090.c:1060
↓ 2 callersFunctiongetTermRows
Get the number of rows after the terminal changes size. */
dump1090.c:2781
↓ 2 callersFunctionhexDigitVal
Turn an hex digit into its 4 bit decimal value. * Returns -1 if the digit is not in the 0-F range. */
dump1090.c:2452
↓ 2 callersFunctioninteractiveRemoveStaleAircrafts
When in interactive mode If we don't receive new nessages within * MODES_INTERACTIVE_TTL seconds we remove the aircraft from the list. */
dump1090.c:2203
↓ 2 callersFunctioninteractiveShowData
Show the currently captured interactive data on screen. */
dump1090.c:2167
↓ 2 callersFunctionmodesComputeCRC
Compute the CRC of a Mode S message (data portion only). * This returns just the CRC computed from the data bits, without XORing * with the transmit
dump1090.c:703
↓ 2 callersFunctionmodesReadFromClient
This function polls the clients using read() in order to receive new * messages from the net. * * The message is supposed to be separated by the ne
dump1090.c:2665
↓ 2 callersFunctionmodesSendAllClients
Send the specified message to all clients listening for a given service. */
dump1090.c:2365
↓ 2 callersFunctionshowHelp
dump1090.c:2789
↓ 2 callersFunctionuseModesMessage
When a new message is available, because it was decoded from the * RTL device, file, or received in the TCP input port, or any other * way we can re
dump1090.c:1802
↓ 1 callersFunctionaddRecentlySeenICAOAddr
Add the specified entry to the cache of recently seen ICAO addresses. * Note that we also add a timestamp so that we can make sure that the * entry
dump1090.c:910
↓ 1 callersFunctionaircraftsToJson
Return a description of planes in json. */
dump1090.c:2505
↓ 1 callersFunctionanetSetSendBuffer
anet.c:87
↓ 1 callersFunctionanetTcpAccept
anet.c:332
↓ 1 callersFunctionanetTcpServer
anet.c:275
↓ 1 callersFunctionapplyPhaseCorrection
Phase enhancement algorithm. * * This function estimates whether we are sampling early or late relative to * the signal phase, and by how much, by
dump1090.c:1498
↓ 1 callersFunctionbruteForceAP
If the message type has the checksum xored with the ICAO address, try to * brute force it using a list of recently seen ICAO addresses. * * Do this
dump1090.c:942
↓ 1 callersFunctioncomputeMagnitudeVector
Turn I/Q samples pointed by Modes.data into the magnitude vector * pointed by Modes.magnitude. */
dump1090.c:1454
↓ 1 callersFunctiondecodeAC12Field
Decode the 12 bit AC altitude field (in DF 17 and others). * Returns the altitude or 0 if it can't be decoded. */
dump1090.c:1016
↓ 1 callersFunctiondecodeAC13Field
Decode the 13 bit AC altitude field (in DF 20 and others). * Returns the altitude, and set 'unit' to either MODES_UNIT_METERS * or MDOES_UNIT_FEETS.
dump1090.c:988
↓ 1 callersFunctiondecodeCPR
This algorithm comes from: * http://www.lll.lu/~edward/edward/adsb/DecodingADSBposition.html. * * * A few remarks: * 1) 131072 is 2^17 since CPR
dump1090.c:1952
↓ 1 callersFunctiondecodeCPRSurface
Decode surface CPR position using local decoding with reference position. * * Surface position messages use a different CPR encoding than airborne:
dump1090.c:2004
↓ 1 callersFunctiondetectModeS
Detect a Mode S messages inside the magnitude buffer pointed by 'm' and of * size 'mlen' bytes. Every detected Mode S message is convert it into a *
dump1090.c:1563
↓ 1 callersFunctiondisplayModesMessage
This function gets a decoded Mode S Message and prints it on the screen * in a human readable format. */
dump1090.c:1314
↓ 1 callersFunctiondumpMagnitudeBar
Helper function for dumpMagnitudeVector(). * It prints a single bar used to display raw signals. * * Since every magnitude sample is between 0-255,
dump1090.c:543
↓ 1 callersFunctiondumpMagnitudeVector
dump1090.c:576
↓ 1 callersFunctiondumpRawMessageJS
Produce a raw representation of the message as a Javascript file * loadable by debug.html. */
dump1090.c:589
↓ 1 callersFunctioninteractiveCreateAircraft
Return a new aircraft structure for the interactive mode linked list * of aircrafts. */
dump1090.c:1826
↓ 1 callersFunctioninteractiveFindAircraft
Return the aircraft with the specified address, or NULL if no aircraft * exists with this address. */
dump1090.c:1851
↓ 1 callersFunctioninteractiveReceiveData
Receive new messages and populate the interactive mode with more info. */
dump1090.c:2069
↓ 1 callersFunctionmodesAcceptClients
This function gets called from time to time when the decoding thread is * awakened by new data arriving. This usually happens a few times every * se
dump1090.c:2300
↓ 1 callersFunctionmodesInit
dump1090.c:321
↓ 1 callersFunctionmodesInitConfig
dump1090.c:299
↓ 1 callersFunctionmodesInitErrorInfo
Compute the table of all syndromes for 1-bit and 2-bit error vectors. * We don't include the first 5 bits (the DF type field) since corrupting * tho
dump1090.c:795
↓ 1 callersFunctionmodesInitNet
Networking "stack" initialization. */
dump1090.c:2275
↓ 1 callersFunctionmodesInitRTLSDR
dump1090.c:385
↓ 1 callersFunctionmodesReadFromClients
Read data from clients. This function actually delegates a lower-level * function that depends on the kind of service (raw, http, ...). */
dump1090.c:2723
↓ 1 callersFunctionmodesSendRawOutput
Write raw output to TCP clients. */
dump1090.c:2381
↓ 1 callersFunctionmodesSendSBSOutput
Write SBS output to TCP clients. */
dump1090.c:2397
↓ 1 callersFunctionmodesWaitReadableClients
This function is used when "net only" mode is enabled to know when there * is at least a new client to serve. Note that the dump1090 networking model
dump1090.c:2743
↓ 1 callersFunctionreadDataFromFile
This is used when --ifile is specified in order to read data from file * instead of using an RTLSDR device. */
dump1090.c:460
↓ 1 callersFunctionsnipMode
Get raw IQ samples and filter everything is < than the specified level * for more than 256 samples in order to reduce example file size. */
dump1090.c:2230
FunctionanetPeerToString
anet.c:354
FunctionanetRead
Like read(2) but make sure 'count' is read before to return * (unless error or EOF condition is encountered) */
anet.c:229
FunctionanetResolve
anet.c:107
FunctionanetSockName
anet.c:369
FunctionanetTcpConnect
anet.c:181
FunctionanetTcpKeepAlive
anet.c:97
FunctionanetTcpNoDelay
anet.c:76
FunctionanetTcpNonBlockConnect
anet.c:186
FunctionanetUnixAccept
anet.c:344
FunctionanetUnixConnect
anet.c:217
FunctionanetUnixNonBlockConnect
anet.c:222
FunctionanetUnixServer
anet.c:297
FunctionanetWrite
Like write(2) but make sure 'count' is read before to return * (unless error is encountered) */
anet.c:244
FunctioncmpErrorInfo
Comparison function for qsort/bsearch on errorinfo by syndrome. */
dump1090.c:756
FunctiondecodeHexMessage
This function decodes a string representing a Mode S message in * raw hex format like: *8D4B969699155600E87406F5B69F; * The string is supposed to be
dump1090.c:2472
FunctionhandleHTTPRequest
Get an HTTP request header and write the response to the client. * Again here we assume that the socket buffer is enough without doing * any kind of
dump1090.c:2562
Functionmain
dump1090.c:2849
FunctionreaderThreadEntryPoint
We read data using a thread, so the main thread only handles decoding * without caring about data acquisition. */
dump1090.c:516
FunctionrtlsdrCallback
We use a thread reading data in background, while the main thread * handles decoding and visualization of data to the user. * * The reading thread
dump1090.c:442
FunctionsigWinchCallback
Handle resizing terminal. */
dump1090.c:2772