Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ralim/usb-pd
/ functions
Functions
94 in github.com/Ralim/usb-pd
⨍
Functions
94
◇
Types & classes
8
↓ 16 callers
Method
getOccupied
Returns number of objects queued in the buffer
include/ringbuffer.h:39
↓ 16 callers
Method
pop
Give null to just drop the data
include/ringbuffer.h:25
↓ 10 callers
Function
iterateThoughExpectedStates
tests/test_pd_policy_engine.cpp:73
↓ 7 callers
Function
injectTestmessage
tests/test_pd_policy_engine.cpp:64
↓ 6 callers
Method
fusb_rx_pending
src/fusb302b.cpp:60
↓ 5 callers
Method
push
include/ringbuffer.h:12
↓ 5 callers
Method
setRegister
tests/mock_fusb302.cpp:101
↓ 4 callers
Method
fusb_get_typec_current
src/fusb302b.cpp:216
↓ 4 callers
Method
fusb_read_message
src/fusb302b.cpp:62
↓ 3 callers
Method
IRQOccured
src/policy_engine.cpp:285
↓ 3 callers
Method
currentStateCode
Useful for debug reading out
include/policy_engine.h:113
↓ 3 callers
Method
fusb_read_id
src/fusb302b.cpp:241
↓ 2 callers
Method
fifoEmpty
tests/mock_fusb302.h:26
↓ 2 callers
Method
fusb_get_status
src/fusb302b.cpp:210
↓ 2 callers
Method
fusb_send_message
src/fusb302b.cpp:25
↓ 2 callers
Method
printStateName
src/policy_engine.cpp:32
↓ 2 callers
Method
readFiFo
tests/mock_fusb302.cpp:127
↓ 1 callers
Method
NegotiationTimeoutReached
src/policy_engine.cpp:174
↓ 1 callers
Method
addToFIFO
tests/mock_fusb302.cpp:109
↓ 1 callers
Method
flush
Clear the entire buffer
include/ringbuffer.h:51
↓ 1 callers
Method
fusb_reset
src/fusb302b.cpp:224
↓ 1 callers
Method
fusb_send_hardrst
src/fusb302b.cpp:90
↓ 1 callers
Method
fusb_setup
src/fusb302b.cpp:96
↓ 1 callers
Method
i2cRead
tests/mock_fusb302.cpp:42
↓ 1 callers
Method
i2cWrite
tests/mock_fusb302.cpp:55
↓ 1 callers
Method
isPD3_0
src/policy_engine.cpp:172
↓ 1 callers
Method
pdHasNegotiated
Has pd negotiation completed
include/policy_engine.h:97
↓ 1 callers
Function
pdbs_dpm_evaluate_capability
tests/user_functions.cpp:7
↓ 1 callers
Function
pdbs_dpm_get_sink_capability
tests/user_functions.cpp:95
↓ 1 callers
Function
test_NormalNegotiation
tests/test_pd_policy_engine.cpp:90
↓ 1 callers
Method
thread
src/policy_engine.cpp:66
Function
EPREvaluateCapabilityFunc
tests/user_functions.cpp:85
Method
FUSB302
include/fusb302b.h:29
Method
PolicyEngine
include/policy_engine.h:53
Function
TEST
Test Scenarios
tests/test_pd_policy_engine.cpp:131
Function
TEST
tests/test_ringbuffer.cpp:7
Function
TEST
tests/test_fusb302.cpp:7
Function
TEST_GROUP
Working through testing the PD state machine
tests/test_pd_policy_engine.cpp:10
Function
TEST_GROUP
tests/test_ringbuffer.cpp:6
Function
TEST_GROUP
tests/test_fusb302.cpp:6
Method
TimersCallback
src/policy_engine.cpp:189
Method
clearEvents
src/policy_engine.cpp:236
Method
fusb_read_byte
* Read a single byte from the FUSB302B * * cfg: The FUSB302B to communicate with * addr: The memory address from which to read * * Returns the va
src/fusb302b.cpp:260
Method
fusb_write_byte
* Write a single byte to the FUSB302B * * cfg: The FUSB302B to communicate with * addr: The memory address to which we will write * byte: The valu
src/fusb302b.cpp:275
Method
getFree
include/ringbuffer.h:49
Method
getRegister
tests/mock_fusb302.cpp:105
Method
hasExplicitContract
include/policy_engine.h:77
Function
i2c_read
remap's for usin the Mock
tests/test_pd_policy_engine.cpp:13
Function
i2c_write
tests/test_pd_policy_engine.cpp:14
Method
isVBUSConnected
src/fusb302b.cpp:193
Function
main
tests/main.cpp:2
Method
notify
src/policy_engine.cpp:25
Method
pdIsEpr
include/policy_engine.h:103
Method
pe_sink_discovery
src/policy_engine_states.cpp:36
Method
pe_sink_epr_eval_cap
src/policy_engine_states.cpp:582
Method
pe_sink_eval_cap
src/policy_engine_states.cpp:99
Method
pe_sink_get_source_cap
src/policy_engine_states.cpp:328
Method
pe_sink_give_sink_cap
src/policy_engine_states.cpp:338
Method
pe_sink_handle_epr_chunk
src/policy_engine_states.cpp:474
Method
pe_sink_hard_reset
src/policy_engine_states.cpp:347
Method
pe_sink_not_supported_received
src/policy_engine_states.cpp:497
Method
pe_sink_ready
src/policy_engine_states.cpp:219
Method
pe_sink_request_epr
src/policy_engine_states.cpp:594
Method
pe_sink_select_cap
src/policy_engine_states.cpp:147
Method
pe_sink_select_cap_tx
src/policy_engine_states.cpp:137
Method
pe_sink_send_epr_keep_alive
src/policy_engine_states.cpp:602
Method
pe_sink_send_not_supported
src/policy_engine_states.cpp:430
Method
pe_sink_send_soft_reset
src/policy_engine_states.cpp:387
Method
pe_sink_send_soft_reset_resp
src/policy_engine_states.cpp:405
Method
pe_sink_send_soft_reset_tx_ok
src/policy_engine_states.cpp:401
Method
pe_sink_setup_wait_cap
src/policy_engine_states.cpp:46
Method
pe_sink_soft_reset
src/policy_engine_states.cpp:375
Method
pe_sink_source_unresponsive
src/policy_engine_states.cpp:504
Method
pe_sink_startup
src/policy_engine_states.cpp:25
Method
pe_sink_transition_default
src/policy_engine_states.cpp:366
Method
pe_sink_transition_sink
src/policy_engine_states.cpp:189
Method
pe_sink_wait_cap
src/policy_engine_states.cpp:56
Method
pe_sink_wait_cap_resp
src/policy_engine_states.cpp:154
Method
pe_sink_wait_epr_chunk
src/policy_engine_states.cpp:448
Method
pe_sink_wait_epr_keep_alive_ack
src/policy_engine_states.cpp:614
Method
pe_sink_wait_event
src/policy_engine_states.cpp:512
Method
pe_sink_wait_good_crc
src/policy_engine_states.cpp:535
Method
pe_sink_wait_send_done
src/policy_engine_states.cpp:554
Method
pe_start_message_tx
src/policy_engine.cpp:205
Method
readPendingMessage
src/policy_engine.cpp:264
Method
renegotiate
include/policy_engine.h:120
Method
reset
tests/mock_fusb302.cpp:6
Method
resetFiFo
tests/mock_fusb302.cpp:36
Method
ringbuffer
include/ringbuffer.h:10
Method
runCCLineSelection
src/fusb302b.cpp:154
Method
setupCompleteOrTimedOut
include/policy_engine.h:78
Method
updateFiFoStatus
tests/mock_fusb302.cpp:120
Method
validateRegister
tests/mock_fusb302.cpp:69
Method
waitForEvent
src/policy_engine.cpp:238