Appendix – standard mode sample code, Appendix, Standard mode sample code – PNI RM3000-F Sensor Suite User Manual
Page 42
PNI Sensor Corporation
Doc #1016102 r04
RM3000-f & RM2000-f Sensor Suite User Manual
Page 42
Appendix
– Standard Mode Sample Code
/******************** (C) COPYRIGHT 2013 PNI Sensor Corp *****************
* File Name:
ThreeD_magIC.c
*
Sample Code for 3D MagIC ASIC
*************************************************************************/
/* Global Variables ----------------------------------------------------*/
unsigned char tom_first_byte;
int mag_raw[3];
/* Private function prototypes -----------------------------------------*/
void spi_1_go_0_phase_0_pol(void);
void spi_1_go_1_phase_1_pol(void);
/*************************************************************************
* Function Name : SPI_tom_CS_LOW
* Description : selects the 3D MagIC CS
* Input : None
* Output : None
* Return : None
*************************************************************************/
void SPI_tom_CS_LOW(void)
{
// Set 3D MagIC Chip Select Pin Low
}
/*************************************************************************
* Function Name : SPI_tom_CS_HIGH
* Description : deselects the 3D MagIC CS
* Input : None
* Output : None
* Return : None
*************************************************************************/
void SPI_tom_CS_HIGH(void)
{
// Set 3D MagIC Chip Select Pin High
}