We provide sample driver code (GD31xx Driver Example Code), available under the Software section of the product page: https://www.nxp.com/products/GD3162
This code demonstrates how to access and configure the device registers over SPI and includes examples for both single-device and daisy-chain operation.