![]() |
CANopen Slave Protocol Stack
Version 7.04.00
|
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() | - |
Functions | |
| uint8_t | Cos404_DO_Get (uint8_t ubGroupV) |
| uint8_t | Cos404_DO_Set (uint8_t ubGroupV, uint8_t ubValueV) |
| uint8_t Cos404_DO_Get | ( | uint8_t | ubGroupV | ) |
| [in] | ubGroupV | output group number |
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).
| uint8_t Cos404_DO_Set | ( | uint8_t | ubGroupV, |
| uint8_t | ubValueV ) |
| [in] | ubGroupV | output group number |
| [in] | ubValueV | digital output value |
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