# Bit field defines for setting CLKPOL and CLKPHA to zero

#### yef smith

Joined Aug 2, 2020
33

#### nsaspook

Joined Aug 27, 2009
7,470

#### yef smith

Joined Aug 2, 2020
33
Hello nsaspook,So in order to change this property given the two tables you shown I need to write it as bellow:

Code:
SPIDRV_HandleData_t handleData;
SPIDRV_Handle_t handle = &handleData;
handle->SPIDRV_ClockMode=spidrvClockMode0;
Correct?
Thanks.

#### nsaspook

Joined Aug 27, 2009
7,470
I would assume you would need to use the proper API calls to get the actual handle and to update SPI comm properties.

Last edited: