#include <stdio.h>
#include <types.h>
#include <stdlib.h>
#include <h8s2638h.h>
#include <dtcvec.h>
Functions | |
void * | dtcvec_alloc (size_t size) |
DTC - DATA TRANSFER CONTROLLER. | |
void * | dtcvec_get (int vectnum) |
Get address of the register information from the vector table. | |
void * | dtcvec_set (int vectnum, void *vect) |
Assign the DTC vector address to appropriate register information. | |
void | dtcvec_print () |
void | dtcvec_fillreg (void *vect, struct dtcvec_reginfo *reginfo) |
Fill the register memory with the prepared data structure of register information (align bytes correctly in the memory). |
void* dtcvec_alloc | ( | size_t | size | ) |
DTC - DATA TRANSFER CONTROLLER.
DTC manipulation with the vector table. Allocate memory for the register information. Its not necessary, but may be a good idea to do so.
size | number of blocks (each 12Bytes) |
void dtcvec_fillreg | ( | void * | vect, | |
struct dtcvec_reginfo * | reginfo | |||
) |
Fill the register memory with the prepared data structure of register information (align bytes correctly in the memory).
*vect | pointer to register information memory. | |
*reginfo | data structure of register information. |
void* dtcvec_get | ( | int | vectnum | ) |
Get address of the register information from the vector table.
vectnum | vector number |
void dtcvec_print | ( | ) |
void* dtcvec_set | ( | int | vectnum, | |
void * | vect | |||
) |
Assign the DTC vector address to appropriate register information.
vectnum | vector number | |
*vect | pointer to register information |