MCPcopy Create free account
hub / github.com/PowerBroker2/SerialTransfer / begin

Method begin

src/I2CTransfer.cpp:18–23  ·  view source on GitHub ↗

void I2CTransfer::begin(TwoWire &_port, configST& configs) Description: ------------ * Advanced initializer for the I2CTransfer Class Inputs: ------- * const TwoWire &_port - I2C port to communicate over * const configST& configs - Struct that holds config values for all possible initialization parameters Return: ------- * void */

Source from the content-addressed store, hash-verified

16 * void
17*/
18void I2CTransfer::begin(TwoWire& _port, const configST& configs)
19{
20 port = &_port;
21 port->onReceive((void (*)(int))processData);
22 packet.begin(configs);
23}
24
25
26/*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected