AN-6131API
18
Holt Integrated Circuits
Project File List with Selected Descriptions
Most of the function names are self-explanatory, some functions retain the names from the original 6130-
2 or MAMBA™ (HI-6138) project they were written for, don’t worry about this they work fine with the HI-
6131 API demo.
device_SPI.h
Macro definitions for register addressing.
board_SPI.c, board_SPI.h
SPI configuration, SPI read/write and Memory watch functions. SPI frequency selection.
613x_initialization.h
Definitions for important configuration settings.
613x_Interrupts.h
Provides interrupt related prototypes for API use.
main.c
The primary program entry portal,
main()
demonstrates initialization sequence used of enabled
terminals. After initialization is complete, function calls demonstrate powerful addressing
methods for all RAM structures used by the enabled terminal modes. Demo initialization and
execution uses Holt high-level API in this demo kit.
board_613x.c, board_613x.h
Contains ARM MCU SPI i/o definitions and macro definitions for
SPI commands
SPIopcode(opcode) ;
Write_6131LowReg(reg_number, data, irq_mgmt) ;
Read_6131LowReg(reg_number, irq_mgmt) ;
Write_6131_1word(data, irq_mgmt) ;
Read_6131_1word(irq_mgmt) ;
Write_6131(write_data[], inc_pointer_first, irq_mgmt) ;
Read_6131(number_of_words, irq_mgmt) ;
Write_6131_Buffer(write_data[], inc_pointer_first, irq_mgmt) ;
Read_6131_Buffer(number_of_words, inc_pointer_first, irq_mgmt) ;
Read_Current_Control_Word(rt_num, irq_mgmt) ;
getMAPaddr() ;
enaMAP(map_num) ;
Read_Current_Control_Word(rt_num, irq_mgmt);
Read_RT1_Control_Word(txrx, samc, number, irq_mgmt);
Read_RT2_Control_Word(txrx, samc, number, irq_mgmt);
ReadWord_Adv4(irq_mgmt) ;