CANopen Slave Protocol Stack 
Version 7.04.00
Loading...
Searching...
No Matches
cos404do.h File Reference

Detailed Description

This module implements the variables and callback functions for the object dictionary from CiA 404 (digital input). The module adds the following object to the object dictionary:

Index Description Function / Variable Configuration Symbol
6200h DO write state 8 output lines Cos404_Idx6200() -
Include dependency graph for cos404do.h:

Functions

uint8_t Cos404_DO_Get (uint8_t ubGroupV)
uint8_t Cos404_DO_Set (uint8_t ubGroupV, uint8_t ubValueV)

Function Documentation

◆ Cos404_DO_Get()

uint8_t Cos404_DO_Get ( uint8_t ubGroupV)
Parameters
[in]ubGroupVoutput group number
Returns
actual output driver state

This function returns the actual state of the digital outputs defined by ubGroupV. The first group of 8 digital outputs starts at index 0 (i.e. sub-index - 1 of object 6200h).

◆ Cos404_DO_Set()

uint8_t Cos404_DO_Set ( uint8_t ubGroupV,
uint8_t ubValueV )
Parameters
[in]ubGroupVoutput group number
[in]ubValueVdigital output value
Returns
actual output driver state

This function sets the parameter ubValueV for the output group defined by ubGroupV to the output port pins. The first group of 8 digital outputs starts at index 0 (i.e. sub-index - 1 of object 6200h).

This function is called by the protocol stack for access to digital output pins.

Example

uint8_t Cos404_DO_Set(uint8_t ubGroupV, uint8_t ubValueV)
{
//------------------------------------------------------------------------------
// set digital outputs on target hardware here
//
return 0;
}
uint8_t Cos404_DO_Set(uint8_t ubGroupV, uint8_t ubValueV)