Functions

dtcvec.c File Reference

#include <stdio.h>
#include <types.h>
#include <stdlib.h>
#include <h8s2638h.h>
#include <dtcvec.h>
Include dependency graph for dtcvec.c:

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).

Function Documentation

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.

Parameters:
size number of blocks (each 12Bytes)
Returns:
pointer to register information

Here is the caller graph for this function:

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).

Parameters:
*vect pointer to register information memory.
*reginfo data structure of register information.

Here is the caller graph for this function:

void* dtcvec_get ( int  vectnum  ) 

Get address of the register information from the vector table.

Parameters:
vectnum vector number
Returns:
pointer to register information

Here is the caller graph for this function:

void dtcvec_print (  ) 

Here is the call graph for this function:

void* dtcvec_set ( int  vectnum,
void *  vect 
)

Assign the DTC vector address to appropriate register information.

Parameters:
vectnum vector number
*vect pointer to register information
Returns:
the old vector

Here is the caller graph for this function: