I am trying to add I2C/TWI bus to nrf51822 device. I have used the SDK example code (12.3.0) and keep getting the following errors:
sdk/drivers/nrf_twim.h:69:38: error: unknown type name 'NRF_TWIM_Type'
NRF_TWIM_TASK_STARTRX = offsetof(NRF_TWIM_Type, TASKS_STARTRX), ///< Start TWI receive sequence.
^
sdk/drivers/nrf_twim.h:70:38: error: unknown type name 'NRF_TWIM_Type'
NRF_TWIM_TASK_STARTTX = offsetof(NRF_TWIM_Type, TASKS_STARTTX), ///< Start TWI transmit sequence.
^
sdk/drivers/nrf_twim.h:71:38: error: unknown type name 'NRF_TWIM_Type'
NRF_TWIM_TASK_STOP = offsetof(NRF_TWIM_Type, TASKS_STOP), ///< Stop TWI transaction.
^
sdk/drivers/nrf_twim.h:72:38: error: unknown type name 'NRF_TWIM_Type'
NRF_TWIM_TASK_SUSPEND = offsetof(NRF_TWIM_Type, TASKS_SUSPEND), ///< Suspend TWI transaction.
etc.....
I have tried going through the code docs but can't seem to find the definition of NRF_TWIM_Type and it doesn't appear to be part of the nRF51 libraries that I can find.
Any ideas?
Thanks
William