Directly control I/O Pins in an SPI component

Is there an easy, no frills way to manipulate IO pins directly from a components cpp file?

I am attempting to modify the existing max31855 to also manipulate some digital outs on read.

Without setting up a bunch of config options, is there a way to import a library and just control the IO pin directly? Something like a: DigitalWrite(Pin, Value);

Thanks : )

Maybe I should clarify, I’m looking to control the IO pins on the ESP device, not the SPI device. So for example, in the SPI component files, just before an spi command goes out over the wire, I would like to set some output pins on the esp device.