ISO1H816G Power load switch

Hi!

First of all here's the datasheet.

I was wondering that how one could control this via serial? Connecting it to arduino seems pretty straightforward, but what about coding?

That IC has also a different version that can be controlled straight from digital I/O pins, but I'd really like to implement serial interface to my project.

Any help would be nice, thanks!

Looks like a straightforward SPI interface, lower CS, send 8 bits (one per switch), raise CS.

There's an SPI library that will do most of this, you may have to provide and control your own CS pin though, I can't remember if the library does that.