![]() |
Contains functions definitions which are relevant for interface between
lower and upper layers of PDCP.
More...
Functions | |||||||||||||
initSpi | |||||||||||||
SPI Interface Initialization
| |||||||||||||
SPI_INIT_STATUS | initSpi () | ||||||||||||
transmitSpi | |||||||||||||
SPI Transmit Data May be called after PIN initialization
| |||||||||||||
uint8_t | transmitSpi (uint8_t data) | ||||||||||||
initCan | |||||||||||||
Can initialization. Can be called after PIN initialization
| |||||||||||||
CAN_INIT_STATUS | initCan (uint8_t id) | ||||||||||||
hal_set_filter | |||||||||||||
Function to set filters of node indicated by ID Can be called after PIN initialization
| |||||||||||||
void | hal_set_filter (uint8_t id) | ||||||||||||
hal_set_mask | |||||||||||||
Function to set mask of node indicated by ID Can be called after PIN initialization
| |||||||||||||
void | hal_set_mask (uint8_t id) | ||||||||||||
initEEPROM | |||||||||||||
Init EEPROM
| |||||||||||||
void | initEEPROM () | ||||||||||||
readEEPROM | |||||||||||||
Read EEPROM
| |||||||||||||
uint8_t | readEEPROM (uint8_t address) | ||||||||||||
writeEEPROM | |||||||||||||
Write EEPROM
| |||||||||||||
void | writeEEPROM (uint8_t address, uint8_t data) | ||||||||||||
initInterrupts | |||||||||||||
Initialize all needed interrupts (TIMERS, EXTx..) Contains call to function initInterrupts_appDesigner() which should contain
| |||||||||||||
void | initInterrupts () | ||||||||||||
initIOPort | |||||||||||||
Place for I/O pins initialization Contains call to function initIOPort_appDesigner() which should contain
| |||||||||||||
void | initIOPort (void) | ||||||||||||
initIOPort_appDesigner | |||||||||||||
Place for I/O pins initialization left for application designer Can consist of I2C, pins, interfaces etc. initialization
| |||||||||||||
void | initIOPort_appDesigner (void) | ||||||||||||
initInterrupts_appDesigner | |||||||||||||
Place for interrupt initialization left for application designer
| |||||||||||||
void | initInterrupts_appDesigner (void) | ||||||||||||
initSPIPorts | |||||||||||||
Spi ports initialization
| |||||||||||||
void | initSPIPorts (void) | ||||||||||||
mcp2515TransmitData | |||||||||||||
Function to transmit data between MCU and MCP2515 Can be called after PIN initialization
| |||||||||||||
uint8_t | mcp2515TransmitData (uint8_t mode, uint8_t reg, uint8_t val, uint8_t setClearFlag) | ||||||||||||
initINTPorts | |||||||||||||
Software interrupt ports initialization
| |||||||||||||
void | initINTPorts (void) | ||||||||||||
triggerSoftwareInterrupt | |||||||||||||
Function to trigger software interrupt
| |||||||||||||
void | triggerSoftwareInterrupt (uint8_t port) | ||||||||||||
checkTransmissionErrors | |||||||||||||
Callback function to check whether errors in transmission have occured
| |||||||||||||
void | checkTransmissionErrors (struct errorStr *readErrStr) | ||||||||||||
clearTransmissionErrors | |||||||||||||
Function to clear error structure
| |||||||||||||
void | clearTransmissionErrors (void) | ||||||||||||
forceReset | |||||||||||||
Function to call reset handler
| |||||||||||||
void | forceReset () | ||||||||||||
initLowLevelProtocolHardware | |||||||||||||
Function to initialize all important ports and methods for LLP hardware
| |||||||||||||
void | initLowLevelProtocolHardware (void) | ||||||||||||
initUSART | |||||||||||||
Function to initialize all important ports and methods for LLP hardware
| |||||||||||||
void | initUSART (uint16_t baud) | ||||||||||||
printCharUsart | |||||||||||||
Function to send single char through UART
| |||||||||||||
void | printCharUsart (char sign) | ||||||||||||
printUsart | |||||||||||||
Function to send string of chars through UART
| |||||||||||||
void | printUsart (char *str) | ||||||||||||
hal_msg_take | |||||||||||||
Function to trigger message sending
| |||||||||||||
void | hal_msg_take () | ||||||||||||
wdtDisable | |||||||||||||
Function to disable watchdog timer
| |||||||||||||
void | wdtDisable () | ||||||||||||
wdtEnable | |||||||||||||
Function to enable watchdog timer
| |||||||||||||
void | wdtEnable (uint8_t time) |
Contains functions definitions which are relevant for interface between
lower and upper layers of PDCP.
SPI_INIT_STATUS initSpi | ( | void | ) |
void initSPIPorts | ( | void | ) |
look at uCmaskFile.h where ports are defined