2019-05-03 18:13:25 -07:00
|
|
|
/*
|
|
|
|
* @file mc33816.h
|
|
|
|
*
|
|
|
|
* @date May 3, 2019
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_LAYER_MC33816_H_
|
|
|
|
#define HW_LAYER_MC33816_H_
|
|
|
|
|
2019-06-06 17:12:03 -07:00
|
|
|
const int MAX_SPI_MODE_A_TRANSFER_SIZE = 31; //max size for register config transfer
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CODE_RAM1,
|
|
|
|
CODE_RAM2,
|
|
|
|
DATA_RAM
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
REG_MAIN,
|
|
|
|
REG_CH1,
|
|
|
|
REG_CH2,
|
|
|
|
REG_IO,
|
|
|
|
REG_DIAG
|
|
|
|
};
|
|
|
|
|
2019-05-03 18:38:34 -07:00
|
|
|
void initMc33816(void);
|
2019-05-03 18:13:25 -07:00
|
|
|
|
|
|
|
#endif /* HW_LAYER_MC33816_H_ */
|